8.5. Deleting snapshots

DELETE /v3/{project_id}/snapshots/{snapshot_id}

Deletes a snapshot with the specified ID.

Snapshot status must be available or error

Source: https://docs.openstack.org/api-ref/block-storage/v3/index.html#delete-a-snapshot

8.5.1. Request

Name In Type Description
project_id path string The UUID of the project in a multi-tenancy cloud.
snapshot_id path string The UUID of the snapshot.

8.5.1.1. Example

# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:8776/v3/f5d834d636c642c7bfe8af86139c6f26/snapshots/a370cf02-f469-4acc-be91-2b27a856806d

8.5.2. Response

8.5.2.1. Status codes

8.5.2.1.1. Success

Code Reason
202 - Accepted Request was accepted for processing, but the processing has not been completed. A ‘location’ header is included in the response which contains a link to check the progress of the request.

8.5.2.1.2. Error

Code Reason
400 - Bad Request Some content in the request was invalid.
403 - Forbidden Policy does not allow current user to do this operation.
404 - Not Found The requested resource could not be found.