Deletes the specified virtual machine from the host.
PRL_HANDLE PrlVm_Delete( PRL_HANDLE hVm, PRL_HANDLE hDevicesList );
PrlApiVm.h
A handle of type PHT_JOB containing the results of this asynchronous operation or PRL_INVALID_HANDLE if there's not enough memory to instantiate the job object.
This function un-registers the machine from the Virtuozzo Service and deletes all its files. This operation cannot be undone. The specified machine must be registered with the Virtuozzo Service. To un-register a machine from the Virtuozzo Service without deleting any of its file, use the PrlVm_Unreg function.
To get the return code from the PHT_JOB object, use the PrlJob_GetRetCode function. Possible values are:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.