(Click to open topic with navigation)
A few methods exist to delete a service in Moab. If the service is a VM, you can use the mvmctl -d command and cancel any attached services (such as storage) by running canceljob on those services' tracking jobs.
For any service, you can destroy the contained objects and delete the service container using mvcctl -d as documented in the steps below, or you can delete each component of the service individually by running canceljob on the tracking jobs.
Do not remove out-of-band VMs by deleting the placeholder reservation that Moab creates to track its resources. Instead, verify that your resource manager no longer reports the VM, then run mvmctl -d.
To cancel a service
> mvcctl -m flags+=DestroyObjects vc1
> mvcctl -d vc1
vc1
and all of its objects are destroyed.
mvmctl -d will also destroy the VM; however, Moab does not automatically delete attached resource workflows, like storage mounts. You must use canceljob on the select (tracking) job of each attached workflow to destroy the whole service.