When attempting to unmount or detach a VMFS, NFS, or vVols datastore, the operation fails with one or more of the following:
The resource 'Datastorename' is in use. Cannot unmount volume 'Datastorename' because "One or more virtual machines are still registered on it". Correct the problem and retry the operation.

Error unmounting /vmfs/volumes/####: Filesystem is busy (ref 11)
Option A: Migrate vCLS VMs (Preferred) If there is another datastore attached to the hosts within the cluster, migrate the vCLS VMs:
Option B: Enable Retreat Mode If the target datastore is the only storage or if migration is not possible, use Retreat Mode to temporarily delete the VMs.
For vCenter 7.0 U3o / 8.0 U2 and Later:
For Versions Prior to 7.0 U3o / 8.0 U2:
Note: If the datastore is shared between multiple clusters, Retreat Mode must be enabled on all clusters connected to that datastore. DRS will be non-functional while Retreat Mode is active.