Este conteúdo não está disponível no idioma selecionado.
16.7. 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 on the resource.
Example 16.10. Removing a Resource from a Collection
Deleting a cluster named DemoCluster from the clusters collection:
cl = api.clusters.get("DemoCluster")
cl.delete()
cl = api.clusters.get("DemoCluster")
cl.delete()