| title | RemoveContent method in class SMS_SoftwareUpdatesPackage |
|---|---|
| description | In Configuration Manager, the RemoveContent Windows Management Instrumentation class method removes old or unnecessary content from the software updates package. |
| ms.date | 09/20/2016 |
| ms.subservice | sdk |
| ms.topic | reference |
| ms.collection | tier3 |
The RemoveContent Windows Management Instrumentation (WMI) class method, in Configuration Manager, removes old or unnecessary content from the software updates package.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
SInt32 RemoveContent(
UInt32 ContentIDs[],
Boolean bRefreshDPs
);
ContentIDs
Data type: UInt32 Array
Qualifiers: [in]
IDs of content to remove from the software updates package.
bRefreshDPs
Data type: Boolean
Qualifiers: [in, optional]
true, by default, to replicate package content to the distribution points.
The method returns an exception on failure.
For information about handling returned errors, see About Configuration Manager Errors.
To determine the content to remove using this method, your application should use SMS_CIToContent Server WMI Class.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
SMS_SoftwareUpdatesPackage Server WMI Class AddUpdateContent Method in Class SMS_SoftwareUpdatesPackage RebuildPackage Method in Class SMS_SoftwareUpdatesPackage