$ 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.
When you delete a virtual machine, the data volume it uses is automatically deleted. |
In the OpenShift Virtualization console, click Workloads → Virtualization from the side menu.
click the Virtual Machines tab.
click the Options menu of the virtual machine that you want to delete and select Delete Virtual Machine.
Alternatively, click the virtual machine name to open the Virtual Machine Overview screen and click Actions → Delete Virtual Machine.
In the confirmation pop-up window, 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.
When you delete a virtual machine, the data volume it uses is automatically deleted. |
Identify the name of the virtual machine that you want to delete.
Delete the virtual machine by running the following command:
$ oc delete vm <vm_name>
This command only deletes objects that exist in the current project. Specify the
|