Skip to main content

Deleting Snapshots

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

Deletes a snapshot with the specified ID. This request requires an authentication token, which you should include in the request headers.

Important

Snapshot status must be available or error to be deleted.

info

Request​

Parameters​

project_idstringrequired

The UUID of the project in a multi-tenancy cloud.

snapshot_idstringrequired

The UUID of the snapshot.

Sample Request​

curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:8776/v3/f33507157a634f1cac71e06a70fb558e/snapshots/40181172-d8b9-46a2-a9d8-c40ed9e098b5

Response​

This operation does not return a response body.

Status Codes​

Success​

CodeReason
202 - AcceptedRequest 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.

Error​

CodeReason
400 - Bad RequestSome content in the request was invalid.
403 - ForbiddenPolicy does not allow current user to do this operation.
404 - Not FoundThe requested resource could not be found.