Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

osc compute server delete

Deletes a server.

By default, the instance is going to be (hard) deleted immediately from the system, but you can set reclaim_instance_interval > 0 to make the API soft delete the instance, so that the instance won’t be deleted until the reclaim_instance_interval has expired since the instance was soft deleted. The instance marked as SOFT_DELETED can be recovered via restore action before it’s really deleted from the system.

Preconditions

Asynchronous postconditions

Troubleshooting

Normal response codes: 204

Error response codes: unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)

Usage: osc compute server delete [OPTIONS] <ID>

Arguments:

  • <ID> — id parameter for /v2.1/servers/{id} API

Options:

  • --wait — Wait for the resource to reach its target status (or, for delete, to disappear) before returning. Uses client-side status polling

  • --wait-timeout <WAIT_TIMEOUT> — Maximum time to wait, in seconds. Only meaningful with --wait

    Default value: 600