Deleting a Snapshot

You can delete a snapshot that you no longer need to free up your quotas of resources. A deleted snapshot cannot be retrieved later.

You cannot delete a snapshot that is currently used by an OUTSCALE machine image (OMI). To do so, you first need to delete the corresponding OMI. For more information, see Deleting an OMI.

You cannot delete a snapshot that another account has shared with you, as it does not belong to you. Similarly, if you delete a snapshot that you shared with other accounts, it is automatically deleted from their accounts as well. For more information, see About Snapshots > Snapshot Permissions and Copy.

Deleting a Snapshot Using Cockpit v2

Before you begin: Ensure that you no longer need the data contained in the snapshot, or that you have a back-up of it, for example on a volume or in another snapshot. For more information, see Creating a Volume from a Snapshot.

  1. Click inside the Snapshots dashboard to make checkboxes appear.

  2. Check the box of the snapshot you want to delete.

    Multiselection is available.

    The snapshot is selected and an action menu appears.

  3. Click IconTerminate Delete.
    A confirmation dialog box appears.

  4. Click Delete Snapshots.
    The snapshot is deleted.

Deleting a Snapshot Using OSC CLI

Before you begin: Ensure that you no longer need the data contained in the snapshot, or that you have a back-up of it, for example on a volume or in another snapshot. For more information, see Creating a Volume from a Snapshot.

The DeleteSnapshot command deletes a specified snapshot.
You cannot delete a snapshot that is currently used by an OUTSCALE machine image (OMI). To do so, you first need to delete the corresponding OMI. For more information, see the DeleteImage method.

Request sample
$ osc-cli api DeleteSnapshot --profile "default" \
    --SnapshotId "snap-12345678"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • SnapshotId: The ID of the snapshot you want to delete.

The DeleteSnapshot command returns the following elements:

  • ResponseContext: Information about the context of the response.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Deleting a Snapshot Using AWS CLI

Before you begin: Ensure that you no longer need the data contained in the snapshot, or that you have a back-up of it, for example on a volume or in another snapshot. For more information, see Creating a Volume from a Snapshot.

To delete a snapshot, use the delete-snapshot command following this syntax:

Request sample
$ aws ec2 delete-snapshot \
    --profile YOUR_PROFILE \
    --snapshot-id snap-12345678 \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • snapshot-id: The ID of the snapshot you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The snapshot is deleted.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.