Share via


IUpdateServer.DeleteUpdate Method (Guid)

 

Applies To: Windows Server Update Services

Delete an update specified by the UpdateID.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

void DeleteUpdate(
    Guid updateId
)
void DeleteUpdate(
    Guid updateId
)
abstract DeleteUpdate : 
        updateId:Guid -> unit
Sub DeleteUpdate (
    updateId As Guid
)

Parameters

  • updateId
    Type: System.Guid

    The updateID in Guid format.

Exceptions

Exception

Condition

WsusObjectNotFoundException

Cannot find the update by the specified updateID.

InvalidOperationException

Cannot delete the update specified by the specified updateID. The common cause of this exception is that this update is still referenced by at least another update in the database.

Remarks

This operation requires WSUS Administrator privileges.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top