A.57 delete

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 instance is:

{ 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

{ 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 }

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.

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyServer.

Examples

Example A.76 Deleting an Oracle VM Server

OVM> delete Server name=MyServer

Example A.77 Deleting a virtual machine or virtual machine template

OVM> delete Vm id=0004fb00001400007be890778aedc7b8 

Example A.78 Deleting a network

OVM> delete Network name=MyVMNetwork

Example A.79 Deleting a virtual machine disk mapping

OVM> delete VmDiskMapping id=0004fb00001300009d46acbb77de919e

See Also