Using a patched Ubuntu kernel, the open-source server platform ProxMox Deleting VM enables the deployment and administration of numerous virtualized environments on a single bare metal server. How to Delete a VM in Proxmox?
After installing Proxmox and configuring virtual machines (VMs), focus on developing your management skills. A virtual machine can be deleted using one of these abilities.
You will discover how to destroy a VM in Proxmox as well as how to get rid of a VM disc and snapshot in this post.
- a Proxmox Virtual Environment that is active.
- an installed virtual computer on Proxmox.
Remove a VM from ProxMox
In Proxmox, there are two ways to get rid of a virtual machine:
- employing a graphical user interface (GUI).
- use a command line.
GUI method of VM deletion
Use the procedures listed below to destroy a VM using the Proxmox graphical user interface:
- Open the Proxmox web console and log in.
- Choose the VM that you want to remove.
- Before continuing to the following step, if the machine is currently functioning, click the Shutdown button. The VM has to be halted or shut down.
- Click Remove after choosing More to reveal a drop-down selection.
- Enter the VM ID and click Remove to confirm.
Using the Command Line to Remove a VM
Using the command line, ProxMox Deleting VM virtual machine:
1: Access the node.
2: Use the following command to locate the VMID (virtual machine ID) in the VM list:
/etc/pve/. vmlist cat
The result includes a list of details, including the IDs of the generated VMs. There is only one VM with ID 100 in the example below.
3: Terminate or stop the VM by executing:
QM Stopped [VMID]
Or:
halt QM [VMID]
4: To uninstall the virtual machine, copy the ID number and add it to the following command:
destruct [vmid] qm
Delete a VM in Proxmox
When ProxMox deletes VM, it frequently also deletes any connected drives. You can use a terminal shell or the GUI to manually remove a disc.
Using the GUI, remove a VM disc
- From the resource tree, choose the virtual machine, then click the Hardware tab.
- Select the disc you want to get rid of.
- Next, tell Proxmox to remove the disc by clicking the Remove option.
- Select Yes to confirm that you want to remove the disc and permanently delete all data.
Using the Command Line, Delete a VM Disk
1: Provide a general summary of each dataset on the system, including:
list zfs
The names of the datasets and the numbers associated with their utilized, available, referenced, and mounted attributes are shown in the result. For illustration:
10G 5G 10G rpool/data/vm-100-disk-1 -
2: Use the command line to remove a drive by running:
-f zfs destroy [disk path]
In order to remove the sample disc indicated above, execute:
ZFS destroy -f vm-100-disk-1/rpool/data
Proxmox VM snapshots can be deleted
Using the GUI or the command line, ProxMox Deleting VM snapshot from Proxmox.
GUI removal of a VM Snapshot
- From the menu on the left, choose the VM, then click the Snapshots tab in the panel.
- Pick the image you want to remove.
- Select the photo you wish to delete and then click Yes.
Using the command line, delete a VM snapshot
1: Start by running the command to list every snapshot of the given virtual machine:
Listsnapshot for QM [VMID]
Substitute [vmid] for the virtual machine ID.
The example output below demonstrates that VM 100 contains snapshot1 and the virtual machine’s present state.
2: To get rid of a photograph, employ:
delsnapshot qm [vmid] [snapshot name]
Proxmox deletes the provided snapshot (snapshot1) and any associated data in the example below.
3: Use the qm list snapshot command once more to verify that the snapshot has been deleted.
Conclusion
This article taught you how to destroy virtual machines (VMs), their discs, and their snapshots in Proxmox. Visit Proxmox versus. Hyper-V and Proxmox vs. ESXi to compare Proxmox to other type-1 hypervisors.