Sometimes when deleting VMs you can forget to check if the VM you are deleting has existing snapshots prior to it being deleted resulting in orphaned snapshots hanging around on the cluster. This can also happen when VMs are being deleted by API (when using something like Citrix App Layering) and the API call doesn't delete the existing snapshots.
Luckily we can use acli to remove these old snapshots and restore order to your cluster once more.
To clean up your old or orphaned snapshots, SSH to your cluster IP address (or directly to a CVM). Now you'll want to switch over to the acli prompt. If you switch to the acropolis prompt you'll be able to make use of handy tab completion
This will give you the acropolis prompt.
As you can see, I have a lot of snapshots on the cluster. I want to remove all the snapshots that Citrix Applayering has left behind. these are the snapshots starting with
XDSNAP_. To achieve this I use the below command.
All my old or orphaned snapshots are now gone and my cluster makes sense again.