Does anyone have any script/cli to delete the Orphaned snapshot files?
See if this link can help you.
VMware KB: Commands to monitor snapshot deletion in ESX 2.5/3.x/4.x and ESXi 3.x/4.x/5.x
If this reply is useful please consider awarding points for "Correct" or "Helpful.
Please don't mind me asking, are you sure the snapshot files are orphaned? How did you confirm the files are not in use?
There are only rare cases in which snapshot files become orphaned.
In our environment, we have this problem constantly with Esx 4.0... I think you're talking about the Vmdk non-consolidation, right?
I've created a script to create a new snapshot and then delete All.
First, check if it Works manually (Taking a new and deleting all snapshots). If so, i'll post my script here. 😃