{"id":7680,"date":"2017-04-14T15:45:06","date_gmt":"2017-04-14T22:45:06","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=7680"},"modified":"2018-09-13T17:42:52","modified_gmt":"2018-09-14T00:42:52","slug":"removing-backup-checkpoint-in-hyper-v-that-has-no-delete-option","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/removing-backup-checkpoint-in-hyper-v-that-has-no-delete-option\/","title":{"rendered":"Removing Backup Checkpoint in Hyper-V That Has No Delete Option"},"content":{"rendered":"<p>Hyper-V\u00a0doesn&#8217;t require much maintenance, but once in a while you may see a checkpoint (formerly called snapshot) attached to a virtual machine (VM) that cannot be deleted because the option to delete is unavailable. I have encountered this on Hyper-V running on a Windows Server 2012 R2 Datacenter. One day\u00a0something went wrong with the server backup and I noticed a checkpoint that I did not create. It was created by a third-party application that I used to backup checkpoints. The checkpoint was\u00a0called <strong><em>ServerName\u00a0&#8211;<\/em>\u00a0Backup<\/strong>, where <em>ServerName<\/em> was the name of the VM. I wanted to export the VM and didn&#8217;t want to have any checkpoints in the backup. I already had a backup of the VM and everything was working fine so I didn&#8217;t really care about the backup that system created. When I\u00a0right-clicked the checkpoint to delete it, I noticed that the option Delete Checkpoint was not available. Here&#8217;s what I saw.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_01.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-7681\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_01.png\" alt=\"\" width=\"404\" height=\"159\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_01.png 404w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_01-300x118.png 300w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/>\u00a0<\/a><\/p>\n<p>Notice that the options to <em>Delete Checkpoint<\/em> and <em>Delete Checkpoint Subtree<\/em>\u00a0are missing in the above screenshot. Here&#8217;s what the options are for a standard checkpoint.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_02.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-7682\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_02.png\" alt=\"\" width=\"419\" height=\"212\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_02.png 419w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_02-300x152.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<p>If you run into this situation, first try the following techniques.<\/p>\n<ol>\n<li>Right-click the host server name in the Hyper-V Manager in the left-hand pane and select Refresh.<\/li>\n<li>Close and re-open the Hyper-V Manager.<\/li>\n<li>Highlight the checkpoint and use the Delete key on the keyboard.<\/li>\n<\/ol>\n<p>If none of these tips help, then use the PowerShell to get rid of unwanted checkpoint(s). This applies to any checkpoint that you want to delete.<\/p>\n<h4><strong>PowerShell Script to Delete a Checkpoint (Snapshot)<\/strong><\/h4>\n<p>To delete a checkpoint in Hyper-V, use the following instructions. The script should work on Hyper-V installed on any operating system, e.g. Windows Server 2008, Windows Server 2012, Windows Server 2016, Windows 10, etc.<\/p>\n<ol>\n<li>Start PowerShell on the computer where the virtual machine is located. I prefer to use PowerShell ISE.<\/li>\n<li>Type the following command and press Enter. The VMSnapshot parameter refers to the VM checkpoint. As I mentioned earlier, the checkpoint used to be called snapshot in Hyper-V before Microsoft changed its name.<br \/>\n<strong>Get-VMSnapshot -ComputerName <em>&lt;Name-of-Computer&gt;<\/em> -VMName <em>&lt;Name-of-VM&gt;<\/em> | Remove-VMSnapshot<\/strong><br \/>\nThe vertical bar is the pipe symbol above the Enter key on a standard keyboard. If your computer is called SERVER1 and the name of the virtual machine is\u00a0SQLServer, you will use the following command. Make sure you use the name of the VM, not the name of the checkpoint . The following command will work if you have only one checkpoint that needs to be deleted. The -ComputerName <em>&lt;Name-of-Computer&gt;<\/em>\u00a0parameter is optional, but you must specify the VMName parameter. In other words, either one of the following commands should work.<br \/>\n<span style=\"background-color: #ffff99;\">Get-VMSnapshot <strong>-ComputerName &#8220;SERVER1&#8221;<\/strong> -VMName &#8220;SQLServer&#8221; | Remove-VMSnapshot<br \/>\n<\/span>or\u00a0<span style=\"background-color: #ffff99;\"><br \/>\n<\/span><span style=\"background-color: #ffff99;\">Get-VMSnapshot -VMName &#8220;SQLServer&#8221; | Remove-VMSnapshot\u00a0<\/span><strong><br \/>\n<\/strong><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_03.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-7686\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_03.png\" alt=\"\" width=\"784\" height=\"143\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_03.png 784w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_03-300x55.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/LingeringSnapshot_03-768x140.png 768w\" sizes=\"(max-width: 784px) 100vw, 784px\" \/><\/a><\/li>\n<li>If you have more than one checkpoints then use the <strong>-Name &lt;<em>Checkpoint-Name<\/em>&gt;<\/strong>\u00a0 parameter at the end. For example, if the VM is called CONTOSO and the checkpoint you want to delete is called CONTOSO\u00a0&#8211; (9\/6\/2018 &#8211; 8:07:13 PM), then the command would like this:<br \/>\n<span style=\"background-color: #ffff99;\">Get-VMSnapshot -VMName &#8220;CONTOSO&#8221; -Name &#8220;CONTOSO &#8211; (6\/20\/2018 &#8211; 10:48:49 AM)&#8221; | Remove-VMSnapshot<br \/>\n<a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Specifying-Snapshot-Name.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10188\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Specifying-Snapshot-Name.png\" alt=\"Specifying the Name of the Snapshot\" width=\"1397\" height=\"93\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Specifying-Snapshot-Name.png 1397w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Specifying-Snapshot-Name-300x20.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Specifying-Snapshot-Name-768x51.png 768w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Specifying-Snapshot-Name-1024x68.png 1024w\" sizes=\"(max-width: 1397px) 100vw, 1397px\" \/><\/a><br \/>\n<\/span><\/li>\n<li>As soon as the checkpoint is deleted, Hyper-V will start the merge process in the Hyper-V Manager. Depending on the size of the virtual\u00a0hard disk, the merge process may take some time\u00a0so be patient.<\/li>\n<li>If you need to export the virtual machine, you will be able to proceed once the merge is complete.<\/li>\n<\/ol>\n<p><em>Article Updated: 9\/13\/18<\/em><\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a9 2017 SeattlePro Enterprises, LLC. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hyper-V\u00a0doesn&#8217;t require much maintenance, but once in a while you may see a checkpoint (formerly called snapshot) attached to a virtual machine (VM) that cannot be deleted because the option to delete is unavailable. I have encountered this on Hyper-V running on a Windows Server 2012 R2 Datacenter. One day\u00a0something went wrong with the server [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":7694,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,11,46,76,30,65,80],"tags":[],"class_list":["post-7680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-tips-tricks","category-virtualization","category-windows-10","category-longhorn-server","category-windows-2012","category-windows-2016"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2017\/04\/Featured_AlexandersBlog_logo_1150x900.png","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/7680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=7680"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/7680\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media\/7694"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=7680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=7680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=7680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}