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
);

Parameters

ContentIDs


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


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.

Remarks

To determine the content to remove using this method, your application should use SMS_CIToContent Server WMI Class.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.