When you no longer need an instance, you can delete it. 当你不再需要一个实例时,你可以删除它。To delete an instance 删除一个实例: List all instances: 列出所有实例,运行下面的指令: $ nova list +--------------------------------------+----------------------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------------+--------+------------+-------------+------------------+
| 84c6e57d-a6b1-44b6-81eb-fcb36afd31b5 | myCirrosServer | ACTIVE | None | Running | private=10.0.0.3 |
| 8a99547e-7385-4ad1-ae50-4ecfaaad5f42 | myInstanceFromVolume | ACTIVE | None | Running | private=10.0.0.4 |
| d7efd3e4-d375-46d1-9d57-372b6e4bdb7f | newServer | ERROR | None | NOSTATE | |
+--------------------------------------+----------------------+--------+------------+-------------+------------------+ Use the following command to delete the newServer instance, which is in ERROR state: 当实例的状态为ERROR时,使用下面的指令删除指定的服务器实例: $ nova delete newServer The command does not notify that your server was deleted. Instead, run the nova list command: 上面的指令不代表服务器被删除了。运行 nova list指令: $ nova list +--------------------------------------+----------------------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------------+--------+------------+-------------+------------------+
| 84c6e57d-a6b1-44b6-81eb-fcb36afd31b5 | myCirrosServer | ACTIVE | None | Running | private=10.0.0.3 |
| 8a99547e-7385-4ad1-ae50-4ecfaaad5f42 | myInstanceFromVolume | ACTIVE | None | Running | private=10.0.0.4 |
+--------------------------------------+----------------------+--------+------------+-------------+------------------+ The deleted instance does not appear in the list. 被删除的实例,将不再出现在列表中。
|