- Newest
- Most votes
- Most comments
To delete an EBS volume attached to an EC2 instance, you'll need to follow these steps:
-
First, ensure that the volume is not the root volume of the instance. Root volumes are typically deleted automatically when the instance is terminated, unless this behavior has been changed.
-
If it's not the root volume, you'll need to detach the volume from the instance before you can delete it. You can do this through the EC2 console or using AWS CLI commands.
-
Once the volume is detached and in the "available" state, you can proceed with deletion. Here's how to delete the volume:
a. Open the Amazon EC2 console. b. In the navigation pane, choose "Volumes". c. Select the volume you want to delete. d. Choose "Actions", then "Delete volume". e. In the confirmation dialog box, choose "Delete".
Alternatively, you can use the AWS CLI to delete the volume with the "delete-volume" command.
If you're having trouble deleting the volume, make sure it's fully detached and in the "available" state. If it's stuck in a "deleting" state, you may need to wait a bit longer or contact AWS support if the issue persists.
Remember, deleting a volume will permanently remove all its data. If you need to preserve the data, consider taking a snapshot before deletion.
Sources
Delete an Amazon EBS volume - Amazon EBS
Cannot terminate EBS-backed instance? | AWS re:Post
Hello.
You can delete an EBS volume in seconds from the Management Console.
https://docs.aws.amazon.com/ebs/latest/userguide/ebs-deleting-volume.html
If you delete an EBS volume, charges will no longer be incurred from that point on.
However, if snapshots or other data remain, snapshot charges will apply.
Relevant content
- asked 7 months ago
