Deletes an object.
Syntax
delete
{
AccessGroup
|
AntiAffinityGroup
|
Assembly
|
BondPort
|
CpuCompatibilityGroup
|
FileServer
|
FileSystem
|
Network
|
PhysicalDisk
|
Repository
|
RepositoryExport
|
Server
|
ServerController
|
ServerPool
|
ServerPoolNetworkPolicy
|
ServerUpdateGroup
|
ServerUpdateRepository
|
StorageArray
|
Tag
|
VirtualCdrom
|
VirtualDisk
|
VlanInterface
|
Vm
|
VmCloneCustomizer
|
VmCloneNetworkMapping
|
VmCloneStorageMapping
|
VmDiskMapping
|
Vnic
}
instance
Where
is:
instance
{
id=
|
value
name=
}value
Description
This command deletes an object.
Virtual machines and virtual machine templates are treated as equivalent within the CLI. Therefore, to delete a virtual machine template you should use the delete Vm command. Since it is possible that a virtual machine template and a virtual machine may share the same name, it is recommended that you use the object's unique ID to perform this operation.
Options
The following table shows the available options for this command.
Option | Description |
---|---|
{
| The object to delete. Before you delete a virtual machine (Vm object), you should make sure all disks have been removed from it using the delete VmDiskMapping command. |
{
|
The instance of the object using either the
|
Examples
Example A.77 Deleting a virtual machine or virtual machine template
OVM> delete Vm id=0004fb00001400007be890778aedc7b8
Example A.79 Deleting a virtual machine disk mapping
OVM> delete VmDiskMapping id=0004fb00001300009d46acbb77de919e