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 );
- 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.
SELECT * FROM SMS_SoftwareProductCompliance WHERE ResProdLangID NOT IN (1033, 0, 65535)
A UInt32 data type indicating the number of objects deleted.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.