$ oc delete vm <vm_name>
You can delete a virtual machine from the web console or by using the oc command-line interface.
Deleting a virtual machine permanently removes it from the cluster.
You have stopped the virtual machine.
In the OKD console, click Virtualization → VirtualMachines from the side menu.
Click the Options menu beside a virtual machine and select Delete.
Alternatively, click the virtual machine name to open the VirtualMachine details page and click Actions → Delete.
Optional: Select With grace period or clear Delete disks.
Click Delete to permanently delete the virtual machine.
You can delete a virtual machine by using the oc command-line interface (CLI). The oc client enables you to perform actions on multiple virtual machines.
You have installed the OpenShift CLI (oc).
You have stopped the virtual machine.
Delete the virtual machine by running the following command:
$ oc delete vm <vm_name>
|
This command only deletes a VM in the current project. Specify the
|