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 v2

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. In the Volumes dashboard, check the box of the volume you want to delete.

    The volume must be in the available state to be deleted.

    Multiselection is available.

    The volume is selected.

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

  3. Click Delete.
    The volume is deleted.

Deleting a Volume Using OSC 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.

The DeleteVolume command deletes a specified Block Storage Unit (BSU) volume.
You can delete available volumes only, that is, volumes that are not attached to a virtual machine (VM).

Request sample
$ osc-cli api DeleteVolume --profile "default" \
    --VolumeId "vol-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.

  • VolumeId: The ID of the volume you want to delete.

The DeleteVolume command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

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

Deleting a Volume Using oapi-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.

The DeleteVolume command deletes a specified Block Storage Unit (BSU) volume.
You can delete available volumes only, that is, volumes that are not attached to a virtual machine (VM).

Request sample
$ oapi-cli --profile "default" DeleteVolume \
    --VolumeId "vol-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.

  • VolumeId: The ID of the volume you want to delete.

The DeleteVolume command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

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

Deleting a Volume Using AWS CLI

Before you begin:

  • Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • 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:

The volume 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.