PowerCLI script to forcibly delete a Datastore that is reported as in use.
Have you ever tried to delete a datastore and get an error saying the Datastore is in use? You browse the datastore and see nothing on it. The pre-checks when you unmount it all pass, yet you cannot delete it. We had this problem. VMware support directed us to delete the partition using the partedUtil command, but I didn’t like the possibility of human error in doing it their way. I wrote a PowerCLI script that performs the following. 1.
VMware Social Media Advocacy