The DeleteByQuery Windows Management Instrumentation (WMI) class method, in Configuration Manager, deletes records specified by a WQL SELECT statement that references the SMS_SoftwareProductCompliance class.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

UInt32 DeleteByQuery(
	 String WQLSelect
);

Parameters

WQLSelect

Data type: StringQualifiers: [in]WQL SELECT statement that selects records to be deleted and must reference the SMS_SoftwareProductCompliance class. This sample SELECT statement deletes all records that specify non-English products.
  Copy Code
SELECT * FROM SMS_SoftwareProductCompliance WHERE ResProdLangID NOT IN (1033, 0, 65535)

Return Values

A UInt32 data type indicating the number of objects deleted.

Requirements

Runtime Requirements

Development Requirements

See Also