$ oc delete vm <vm_name>
You can delete a virtual machine by using the web console or the oc
command line interface.
Deleting a virtual machine (VM) permanently removes it from the cluster.
If the VM is delete protected, the Delete action is disabled in the VM’s Actions menu.
To delete the VM, you must first disable the VM’s delete protection setting, if enabled.
From the OKD web console, choose your view:
For a virtualization-focused view, select Administrator → Virtualization → VirtualMachines.
For a general view, navigate to Virtualization → VirtualMachines.
click the Options menu beside a VM and select Delete.
Alternatively, click the VM’s name to open the VirtualMachine details page and click Actions → Delete.
You can also right-click the VM in the tree view and select Delete from the pop-up menu.
Optional: Select With grace period or clear Delete disks.
click Delete to permanently delete the VM.
You can delete a virtual machine (VM) by using the oc
command-line interface (cli). The oc
client enables you to perform actions on multiple VMs.
To delete the VM, you must first disable the VM’s delete protection setting, if enabled.
You have installed the OpenShift cli (oc
).
Delete the VM by running the following command:
$ oc delete vm <vm_name>
This command only deletes a VM in the current project. Specify the
|