Show Table of Contents
3.8. 从集合中删除资源
要删除一个资源,您需要先从集合中获得它,然后调用
delete 方法来删除它。
例 3.8. 从集合中删除资源
从
vms 集合中删除一个名为 DemoVM 的虚拟机:
vm = api.vms.get("DemoVM")
vm.delete()

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.