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. |
-
Click inside the Volumes dashboard to make checkboxes appear.
-
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 and an action menu is displayed.
-
Click
Delete.
A confirmation dialog box appears. -
Click Delete Volumes.
The volume is deleted.
Deleting a Volume Using Cockpit v1
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. |
-
Click Storage > Volumes.
-
Click the volume you want to delete.
Multiselection is available.
The volume is selected.
-
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.
-
Click Delete .
A confirmation dialog box appears. -
Click Delete to confirm the operation.
The volume is deleted and no longer appears on the Volumes page.
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. |
See the DeleteVolume command sample in the documentation of the OUTSCALE API. |
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:
$ 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
: Iftrue
, the volume is deleted.
{
"return": "true"
}
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.