Red Hat Training
A Red Hat training course is available for Red Hat Virtualization
3.8. Removing a Resource from a Collection
To remove a resource you must retrieve it from the collection that contains it and call the
delete
method of the resource.
Example 3.8. Removing a Resource from a Collection
Deleting a virtual machine named
DemoVM
from the vms
collection:
vm = api.vms.get("DemoVM") vm.delete()