RemoveContent Method in Class SMS_SoftwareUpdatesPackage

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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 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.

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

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

SMS_SoftwareUpdatesPackage Server WMI Class
AddUpdateContent Method in Class SMS_SoftwareUpdatesPackage
RebuildPackage Method in Class SMS_SoftwareUpdatesPackage