This is a cache of https://docs.openshift.com/rosa/virt/virtual_machines/virt-delete-vms.html. It is a snapshot of the page at 2024-11-24T03:26:16.381+0000.
Deleting virtual machines - Virtual machines | Virtualization | Red Hat OpenShift <strong>service</strong> on AWS
×

You can delete a virtual machine from the web console or by using the oc command line interface.

Deleting a virtual machine using the web console

Deleting a virtual machine permanently removes it from the cluster.

Procedure
  1. In the Red Hat OpenShift service on AWS console, click VirtualizationVirtualMachines from the side menu.

  2. Click the Options menu kebab beside a virtual machine and select Delete.

    Alternatively, click the virtual machine name to open the VirtualMachine details page and click ActionsDelete.

  3. Optional: Select With grace period or clear Delete disks.

  4. Click Delete to permanently delete the virtual machine.

Deleting a virtual machine by using the CLI

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.

Prerequisites
  • Identify the name of the virtual machine that you want to delete.

Procedure
  • 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 -n <project_name> option if the VM you want to delete is in a different project or namespace.