Happy Sunday everyone, I just wanted to share quick tip to remove an old datastore that has been decommissioned or is no longer functional.
If you are unable to remove it using the vCenter Web UI, try the following.
In order to remove it you need to SSH to any ESXi host that still have the Datastore setup. Run the following commands.
You will get an output of all Datastores mounted as below. Notice “DatastoreNAME” is the Datastore we will be removing.
Now run the command, change “DatastoreNAME” to the name of the Datastore you wish to remove.
Then we should see
Hope this helps.