DestroySystem method of the Msvm_VirtualSystemManagementService class
Deletes a virtual system. The specified virtual system is deleted, including any elements scoped by it. The virtual resources of the deleted virtual system are returned to their resource pools, which, depending on the implementation may imply the deletion of those resources. If the virtual system is active when the operation is invoked, it is first deactivated and then deleted. If snapshots were created from the virtual system, they are also deleted.
Syntax
uint32 DestroySystem(
[in] CIM_ComputerSystem REF AffectedSystem,
[out] CIM_ConcreteJob REF Job
);
Parameters
-
AffectedSystem [in]
-
A reference to the CIM_ComputerSystem that represents the virtual system to delete.
-
Job [out]
-
A reference to an optional job for the operation if the operation is run asynchronously.
Return value
The possible return values are:
-
Completed with No Error (0)
-
Not Supported (1)
-
Failed (2)
-
Timeout (3)
-
Invalid Parameter (4)
-
Invalid State (5)
-
DMTF Reserved (6 4095)
-
Method Parameters Checked - Job Started (4096)
-
Method Reserved (4097 32767)
-
Vendor Specific (32768 65535)
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\HyperVCluster\v2 |
MOF |
|
DLL |
|