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

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


Send comments about this topic to Microsoft.