Validated on 2 Oct 2019 • Last edited on 23 May 2024
formatting
Volumes are network-based block devices that provide additional data storage for Droplets. You can move them between Droplets, create disk images of them, and resize them at any time.
To remove a volume from a Droplet, you can either detach the volume or delete the volume.
Detaching a volume removes the volume from its current Droplet. You can attach the volume and all of its contents to a different Droplet as needed.
Deleting a volume permanently destroys the volume and its contents. This action cannot be reversed.
Delete a Volume Using Automation
Before deleting a volume, unmount it to prevent data loss.
How to delete a volume using the DigitalOcean CLI
To delete a volume via the command-line, follow these steps: