Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.22 KB

File metadata and controls

57 lines (41 loc) · 2.22 KB
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

RemoveContent Method in Class SMS_SoftwareUpdatesPackage

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.

Syntax

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

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