Skip to content

Delete unit by UUID

Deletes a unit by UUID.

The Windows user who runs the script needs administrator rights for units on the Management Point that the unit belongs to.

DeleteUnitByUUID(Byval UUID as String) as Boolean

UUID (String)

The UUID of the unit

Boolean. The function returns True if successful, otherwise false.

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetInstanceManagementPoint("1")
Wscript.echo oCMS.DeleteUnitByUUID("4C4C4544-004E-4210-8038-C8C04F31324A")