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



Data type: UInt32 ArrayQualifiers: [in]IDs of content to remove from the software updates package.

Data type: BooleanQualifiers: [in, optional]true, by default, to replicate package content to the distribution points.

Return Values

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.


Runtime Requirements

Development Requirements

See Also

Send comments about this topic to Microsoft.