To determine which user removed or deleted a virtual machine, check the vCenter Server Events tab for the host or cluster on which the virtual machine resided.
Regarding vSphere 6.5 and later
- SSH to the ESXi host where the VM formerly resided on
- Check hostd.log file on directory /var/log
- Grep on word "Destroy VM called" on the file you see an entry like:
#grep -i "Destroy VM called" hostd.*
2020-05-04112:53:23.524Z info hostd[2098595] [Originator@6876 sub=Vbsvc.vm:/vmfs/volumes/5bfebala-########-####-##########da/<vm object name>.vmx opID=<generated alphanumeric opID name> user=vpxuser <domain\username> Destroy VM called
Check the username in "Destroy VM called" Line, it will state the user who performed this task.
- <domain\username> will be the user who removed or deleted the virtual machine.
- <generated alphanumeric opID name> will be the ID that created for this specific task.
- <vm object name> will be name of the .vmx file that was affected.