Deleting a Volume

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

Deleting a Volume Using Cockpit

Before you begin: Ensure that you no longer need the data stored on the volume you want to delete or that it is saved elsewhere (on another volume or in a snapshot), as you will not be able to retrieve the deleted volume.

  1. Click Storage > Volumes.

  2. Click the volume you want to delete.

    Multiselection is available.

    The volume is selected.

  3. If the volume is in use, click Detach to make it available.

    In case of multiselection, you need to repeat this step for each selected volume, as multiselection is not available when detaching volumes from instances.

  4. Click Delete .
    A confirmation dialog box appears.

  5. Click Delete to confirm the operation.
    The volume is deleted and no longer appears on the Volumes page.

Deleting a Volume Using AWS CLI

Before you begin: Ensure that you no longer need the data stored on the volume you want to delete or that it is saved elsewhere (on another volume or in a snapshot), as you will not be able to retrieve the deleted volume.

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

Request sample
$ aws ec2 delete-volume \
    --profile YOUR_PROFILE \
    --volume-id vol-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.

  • volume-id: One or more volume IDs.

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

The delete-volume command returns a result as follows:

  • return: If true, the volume is deleted.

Result sample
{
    "return": "true"
}

Related Pages

Corresponding API Method

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