#1
Here is simple solution for you:
Power off VM
Right click VM and select "remove from inventory" - this only removes VM from inventory but does not delete it from datastore
Now go to datastore browser and rename VM folder to any name you like
Now enter that folder and right-click *.vmx file and choose "Add to inventory"
Now you can add your VM to VC inventory under the same name as the folder's name on datastore
After this operation the name of VM under VC and the folder name on datastore are the same. The only thing that stays different are VM file names.
#2
Try to make SSH connection to your ESX server then navigate to /vmfs/volumes/DATASTORE NAME/ then
rmdir VM FOLDER NAME
or
rm -rf VM FOLDER NAME
Message was edited by: cf13