VMware ESXi 7.x
VMware ESXi 8.x
The presence of old snapshots referencing the existing datastore prevents it from being automatically unmounted when the host is removed from the cluster.
The snapshots of the affected VMs retained pointers to the old datastore, which caused the datastore to remain in the system and prevented it from entering the SDRS (Storage DRS) maintenance task. As a result, the datastore could not be removed from the inventory.
Identify and delete any old snapshots associated with the VMs that reference the datastore.
Ensure the datastore is no longer in use by any VMs or hosts.
After removing the snapshots, proceed with the SDRS maintenance task to properly unmount and remove the datastore from the inventory.