{"id":4634,"date":"2023-07-22T10:35:33","date_gmt":"2023-07-22T10:35:33","guid":{"rendered":"https:\/\/arzhost.com\/blogs\/?p=4634"},"modified":"2023-10-19T17:51:19","modified_gmt":"2023-10-19T17:51:19","slug":"delete-a-vm-in-proxmox","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/","title":{"rendered":"How to Delete a VM in Proxmox &#8211; [SOLVED]"},"content":{"rendered":"<p>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?<\/p>\n<p>After installing Proxmox and configuring <a href=\"https:\/\/en.wikipedia.org\/wiki\/Virtual_machine\" target=\"_blank\" rel=\"noopener\">virtual machines<\/a> (VMs), focus on developing your management skills. A virtual machine can be deleted using one of these abilities.<\/p>\n<p>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.<\/p>\n<ol>\n<li>a Proxmox Virtual Environment that is active.<\/li>\n<li>an installed virtual computer on Proxmox.<\/li>\n<\/ol>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Remove_a_VM_from_ProxMox\" >Remove a VM from ProxMox<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#GUI_method_of_VM_deletion\" >GUI method of VM deletion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Using_the_Command_Line_to_Remove_a_VM\" >Using the Command Line to Remove a VM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Delete_a_VM_in_Proxmox\" >Delete a VM in Proxmox<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Using_the_Command_Line_Delete_a_VM_Disk\" >Using the Command Line, Delete a VM Disk<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Proxmox_VM_snapshots_can_be_deleted\" >Proxmox VM snapshots can be deleted<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Using_the_command_line_delete_a_VM_snapshot\" >Using the command line, delete a VM snapshot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#Conclusion\" >Conclusion<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/arzhost.com\/blogs\/delete-a-vm-in-proxmox\/#How_To_Install_Windows_11_On_VMware_Virtual_Machine\" >How To Install Windows 11 On VMware Virtual Machine?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Remove_a_VM_from_ProxMox\"><\/span><strong>Remove a VM from ProxMox<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><u>In Proxmox, there are two ways to get rid of a virtual machine:<\/u><\/p>\n<ol>\n<li>employing a graphical user interface (GUI).<\/li>\n<li>use a command line.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"GUI_method_of_VM_deletion\"><\/span><strong>GUI method of VM deletion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><u>Use the procedures listed below to destroy a VM using the Proxmox graphical user interface:<\/u><\/p>\n<ol>\n<li>Open the Proxmox web console and log in.<\/li>\n<li>Choose the VM that you want to remove.<\/li>\n<li>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.<\/li>\n<li>Click Remove after choosing More to reveal a drop-down selection.<\/li>\n<li>Enter the VM ID and click Remove to confirm.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Using_the_Command_Line_to_Remove_a_VM\"><\/span><strong>Using the Command Line to Remove a VM<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><u>Using the command line, <span style=\"color: #000000;\"><strong>ProxMox Deleting VM<\/strong><\/span> virtual machine:<\/u><\/p>\n<p><u>1: Access the node.<\/u><\/p>\n<p><u>2: Use the following command to locate the VMID (virtual machine ID) in the VM list:<\/u><\/p>\n<ul>\n<li><code>\/etc\/pve\/. vmlist cat<\/code><\/li>\n<\/ul>\n<p>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.<\/p>\n<p><u>3: Terminate or stop the VM by executing:<\/u><\/p>\n<ul>\n<li><code>QM Stopped [VMID]<\/code><\/li>\n<\/ul>\n<p><strong>Or:<\/strong><\/p>\n<ul>\n<li><code>halt QM [VMID]<\/code><\/li>\n<\/ul>\n<p><u>4: To uninstall the virtual machine, copy the ID number and add it to the following command:<\/u><\/p>\n<ul>\n<li><code>destruct [vmid] qm<\/code><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Delete_a_VM_in_Proxmox\"><\/span>Delete a VM in Proxmox<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>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.<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/DmI19Q8Lz-s\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><u>Using the GUI, remove a VM disc <\/u><\/p>\n<ol>\n<li>From the resource tree, choose the virtual machine, then click the Hardware tab.<\/li>\n<li>Select the disc you want to get rid of.<\/li>\n<li>Next, tell Proxmox to remove the disc by clicking the Remove option.<\/li>\n<li>Select Yes to confirm that you want to remove the disc and permanently delete all data.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Using_the_Command_Line_Delete_a_VM_Disk\"><\/span><strong>Using the Command Line, Delete a VM Disk<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><u>1: Provide a general summary of each dataset on the system, including:<\/u><\/p>\n<ul>\n<li><code>list zfs<\/code><\/li>\n<\/ul>\n<p><u>The names of the datasets and the numbers associated with their utilized, available, referenced, and mounted attributes are shown in the result. For illustration:<\/u><\/p>\n<ul>\n<li><code>10G 5G 10G rpool\/data\/vm-100-disk-1 -<\/code><\/li>\n<\/ul>\n<p><u>2: Use the command line to remove a drive by running:<\/u><\/p>\n<ul>\n<li><code>-f zfs destroy [disk path]<\/code><\/li>\n<\/ul>\n<p><u>In order to remove the sample disc indicated above, execute:<\/u><\/p>\n<ul>\n<li><code>ZFS destroy -f vm-100-disk-1\/rpool\/data<\/code><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Proxmox_VM_snapshots_can_be_deleted\"><\/span><strong>Proxmox VM snapshots can be deleted<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Using the GUI or the command line, ProxMox Deleting VM snapshot from Proxmox.<\/p>\n<p><strong><u>GUI removal of a VM Snapshot<\/u><\/strong><\/p>\n<ol>\n<li>From the menu on the left, choose the VM, then click the Snapshots tab in the panel.<\/li>\n<li>Pick the image you want to remove.<\/li>\n<li>Select the photo you wish to delete and then click Yes.<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Using_the_command_line_delete_a_VM_snapshot\"><\/span><strong>Using the command line, delete a VM snapshot<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><u>1: Start by running the command to list every snapshot of the given virtual machine:<\/u><\/p>\n<ul>\n<li><code>Listsnapshot for QM [VMID]<\/code><\/li>\n<li><code>Substitute [vmid] for the virtual machine ID.<\/code><\/li>\n<\/ul>\n<p>The example output below demonstrates that VM 100 contains snapshot1 and the virtual machine&#8217;s present state.<\/p>\n<p><u>2: To get rid of a photograph, employ:<\/u><\/p>\n<ul>\n<li><code>delsnapshot qm [vmid] [snapshot name]<\/code><\/li>\n<\/ul>\n<p>Proxmox deletes the provided snapshot (snapshot1) and any associated data in the example below.<\/p>\n<p><u>3: Use the qm list snapshot command once more to verify that the snapshot has been deleted.<\/u><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>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.<\/p>\n<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b3d0d47 elementor-section-full_width brdcrums elementor-section-height-default elementor-section-height-default\" data-id=\"b3d0d47\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n<div class=\"elementor-container elementor-column-gap-default\">\n<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9e94f88\" data-id=\"9e94f88\" data-element_type=\"column\">\n<div class=\"elementor-widget-wrap elementor-element-populated\">\n<div class=\"elementor-element elementor-element-1dac6dc elementor-widget elementor-widget-hos-bardcrumb-id\" data-id=\"1dac6dc\" data-element_type=\"widget\" data-widget_type=\"hos-bardcrumb-id.default\">\n<div class=\"elementor-widget-container\">\n<section class=\"page-title\">\n<div class=\"auto-container\">\n<h3><span class=\"ez-toc-section\" id=\"How_To_Install_Windows_11_On_VMware_Virtual_Machine\"><\/span><a href=\"https:\/\/arzhost.com\/blogs\/install-windows-11-on-vmware-virtual-machine\/\">How To Install Windows 11 On VMware Virtual Machine?<\/a><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"elementor-section elementor-top-section elementor-element elementor-element-65afee17 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"65afee17\" data-element_type=\"section\">\n<div class=\"elementor-container elementor-column-gap-default\">\n<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-685ae00b listdesign\" data-id=\"685ae00b\" data-element_type=\"column\">\n<div class=\"elementor-widget-wrap elementor-element-populated\">\n<div class=\"elementor-element elementor-element-1d2d6907 elementor-widget elementor-widget-theme-post-featured-image elementor-widget-image\" data-id=\"1d2d6907\" data-element_type=\"widget\" data-widget_type=\"theme-post-featured-image.default\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6136,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[281,279,282,280],"table_tags":[],"class_list":["post-4634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-delete","tag-proxmox","tag-virtual-machine","tag-vm"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/4634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=4634"}],"version-history":[{"count":5,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/4634\/revisions"}],"predecessor-version":[{"id":8780,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/4634\/revisions\/8780"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/6136"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=4634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=4634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=4634"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/table_tags?post=4634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}