scott21
Contributor
Contributor

Prevent VM from being deleted

I am trying to find out if there is a way to prevent a VM from being 'Removed from Inventory' or 'Delete from Disk'. When I am running my code on a VM i don't want the user to be able to delete it. I have a CustomTask associated with the VM and there is a field in TaskInfo called locked. Does anyone know how to set the locked field or even if that will fix my problem.

Reply
0 Kudos