Delete a snapshot
You can delete a snapshot that you no longer need in order to free up your resource quotas. A deleted snapshot cannot be recovered later.
You cannot delete a snapshot that is in use by an image. To do so, you must first delete the corresponding image.
You cannot delete a snapshot that another account has shared with you, because it does not belong to you. Likewise, if you delete a snapshot that you have shared with other accounts, it is automatically deleted from those accounts as well.
Deleting a snapshot is available only through the API.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- compute.snapshot.delete
- Console
- API
- Terraform
Deleting a snapshot is not available through the console. Use the API or Terraform.
Before you begin: make sure that you no longer need the data contained in the snapshot, or that you have a backup of it, for example on a volume or in another snapshot.
The DELETE /compute/spaces/{spaceId}/snapshots/{id} command deletes a specified snapshot.
You cannot delete a snapshot that is currently in use by an image. To do so, you must first delete the corresponding image.
The Terraform documentation is available on the Numspot registry ↗.