openstack-manuals/doc/user-guide/source/cli_delete_an_instance.rst
venkatamahesh 0196e7f51e [user-guide] Add an empty line between input and output
In this patch
1.) Add a new line between input and output of "code-block"s
2.) Combined the input and output into one "code-block"
3.) Delete extra lines in the files

Change-Id: I9801d293fedaa90543c02885ef3cb79aaeb50106
Implements: blueprint user-guides-reorganised
2015-12-22 15:19:11 +00:00

1.9 KiB

Delete an instance

When you no longer need an instance, you can delete it.

  1. List all instances:

    $ 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     |                  |
    +-------------+----------------------+--------+------------+-------------+------------------+
  2. Run the nova delete command to delete the instance. The following example shows deletion of the newServer instance, which is in ERROR state:

    $ nova delete newServer

    The command does not notify that your server was deleted.

  3. To verify that the server was deleted, run the nova list command:

    $ 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 |
    +-------------+----------------------+--------+------------+-------------+------------------+

    The deleted instance does not appear in the list.