When attempting to delete a virtual machine from disk in VMware vSphere, the operation fails with the following error message:
"Cannot complete the operation due to an incorrect request to the server."
This behavior occurs when the deletion task is blocked, typically due to existing file locks on the virtual machine disks (VMDKs)
Backup Proxy Locks: A backup solution proxy VM (e.g., Rubrik, Veeam, etc.) holds an active lock on the VMDK files of the target virtual machine, preventing the deletion operation.
Identify the target virtual machine name and the datastore where its files are located.
vmfsfilelockinfo -p /vmfs/volumes/<path>/<VMname.vmdk>lsof | grep -i <"VMname.vmdk">lsof | grep -i <Process ID number>