This article provides the required steps to successfully complete datastore detach or unmount workflow, which might be impacted due to the placement of vCLS VMs.
No VMs or VM Templates running on this datastore.
Scratch partition is not configured on this datastore.
Noticed vCLS folder and files under this datastore.
VMware vSphere vCenter 7.x
VMware vSphere vCenter 8.x
Note: This datastore might be connected to different hosts in different clusters and vCLS VMs from all these different clusters might be stored in this datastore. In such a case, Retreat Mode has to be configured on all the clusters connected to this datastore, so this datastore can be unmounted or detached.
You can find this option under path: Host Cluster > Configure > vSphere Cluster Services > Datastore > VCLS allowed - Add : new datastore
Reference Documentation: vSphere Cluster Services
Note: If the storage backing the datastore has been removed before the datastore was unmounted and removed and vCLS VMs are still running on it the only solution is to place the cluster(s) in Retreat Mode and reboot the host(s) with the stuck vCLS VMs. Once rebooted the vCLS VMs will be gone and datastore removal may proceed if still present (typically the datastore will also be removed already as no references remain).
Disable vCLS on a Cluster via Retreat Mode
vSphere Cluster Services (vCLS) in vSphere 7.0 Update 1 and newer versions