Identifying reasons why some files may not be able to be deleted from the datastore.
Symptoms:
Deletion task of VMDK from the datastore fails with below errors
Error: Cannot complete the operation due to an incorrect request to the server.
Or
Error: Deletion of file or directory [WorkloadDatastore] <UUID>/Filename.vmdk from WorkloadDatastore was initiated from 'VMware vim-java [email protected]' and completed with status 'Failure'
Potential file locks exist from backup tool proxy VM.
Possible corrupt CTK files.
Check for exclusive lock held by a Virtual Machine Backup solution proxy VM.
For corrupt CTK files follow KB2013520
Incase the above steps doesn't resolve the issue Engage VMware Support for assistance