Removing targeted snapshots

Sometimes, you will want to remove a specific snapshot, but not all of the snapshots on a virtual machine. Sometimes, you will want to clean up an entire virtual machine. In this recipe, we're going to work with two of the virtual machines that you created snapshots with in the first recipe of the chapter.

Getting Started

From the first recipe of this chapter, you created snapshots onto TTYLinux1. In the first part of this recipe, you will remove a single snapshot from the tree of snapshots on this VM. To do this, you will match it against the name of the snapshot that was created.

Once you remove a targeted, single snapshot, you will remove all of the snapshots on the VM, like you would after a project is complete or ...

Get PowerCLI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.