vVol datastore deletion fails with error "Cannot delete datastore datastore_name, it still contains VM(s)."
search cancel

vVol datastore deletion fails with error "Cannot delete datastore datastore_name, it still contains VM(s)."

book

Article ID: 407027

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Deleting a vVol Datastore Using the vCenter Plugin fails.

Environment

VMware ESXi 8.X

Resolution

To delete the VVOL datastore, please follow these steps.

1. Before deleting a datastore, ensure all virtual machines, templates, and related files are removed or migrated to another datastore. 

2. Unmount the datastore from all hosts.

3. Clean up the vVol instance in Storage array, depending on your storage array, we will need to detach the vVol from the storage container.

4. Perform storage rescan

 

Note:

The delete operation for the datastore permanently deletes all files associated with virtual machines on the datastore. Although you can delete the datastore without unmounting, it is preferable that you unmount the datastore first.

Additional Information