2015-03-03 11:23:19 +11:00
|
|
|
==================
|
|
|
|
Delete an instance
|
|
|
|
==================
|
|
|
|
|
|
|
|
When you no longer need an instance, you can delete it.
|
|
|
|
|
2015-12-16 12:51:17 +05:30
|
|
|
#. List all instances:
|
2015-03-03 11:23:19 +11:00
|
|
|
|
2015-12-16 12:51:17 +05:30
|
|
|
.. code-block:: console
|
2015-03-03 11:23:19 +11:00
|
|
|
|
2015-12-16 12:51:17 +05:30
|
|
|
$ nova list
|
|
|
|
+-------------+----------------------+--------+------------+-------------+------------------+
|
|
|
|
| ID | Name | Status | Task State | Power State | Networks |
|
|
|
|
+-------------+----------------------+--------+------------+-------------+------------------+
|
|
|
|
| 84c6e57d... | myCirrosServer | ACTIVE | None | Running | private=10.0.0.3 |
|
|
|
|
| 8a99547e... | myInstanceFromVolume | ACTIVE | None | Running | private=10.0.0.4 |
|
|
|
|
| d7efd3e4... | newServer | ERROR | None | NOSTATE | |
|
|
|
|
+-------------+----------------------+--------+------------+-------------+------------------+
|
2015-03-03 11:23:19 +11:00
|
|
|
|
2015-03-30 15:07:43 +11:00
|
|
|
#. Run the :command:`nova delete` command to delete the instance. The following
|
2015-03-03 11:23:19 +11:00
|
|
|
example shows deletion of the ``newServer`` instance, which is in
|
2015-12-16 12:51:17 +05:30
|
|
|
``ERROR`` state:
|
2015-03-03 11:23:19 +11:00
|
|
|
|
2015-12-16 12:51:17 +05:30
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ nova delete newServer
|
2015-03-03 11:23:19 +11:00
|
|
|
|
|
|
|
The command does not notify that your server was deleted.
|
|
|
|
|
2015-03-30 15:07:43 +11:00
|
|
|
#. To verify that the server was deleted, run the :command:`nova list`
|
2015-12-16 12:51:17 +05:30
|
|
|
command:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ nova list
|
|
|
|
+-------------+----------------------+--------+------------+-------------+------------------+
|
|
|
|
| ID | Name | Status | Task State | Power State | Networks |
|
|
|
|
+-------------+----------------------+--------+------------+-------------+------------------+
|
|
|
|
| 84c6e57d... | myCirrosServer | ACTIVE | None | Running | private=10.0.0.3 |
|
|
|
|
| 8a99547e... | myInstanceFromVolume | ACTIVE | None | Running | private=10.0.0.4 |
|
|
|
|
+-------------+----------------------+--------+------------+-------------+------------------+
|
2015-03-03 11:23:19 +11:00
|
|
|
|
|
|
|
The deleted instance does not appear in the list.
|