26.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 26.7. Removing a Resource from a Collection
Deleting a virtual machine named
DemoVM from the vms collection:
vm = api.vms.get("DemoVM") vm.delete()