How to Delete Vultr Block Storage Volume
-
by Blog Admin
- 41
How to Delete Vultr Block Storage Volume
A guide explaining how to permanently remove a Block Storage volume from your Vultr account.
Deleting a Vultr Block Storage volume removes the volume from your account and stops further charges. The operation also wipes any data in the volume. Backup any important files before performing this operation because you can’t undo the change. You can migrate the files to a different Vultr Block Storage volume or a Vultr Cloud Compute instance. Ensure you’ve not attached the volume to any Vultr Cloud Compute instance before deleting.
Follow this guide to delete Vultr Block Storage volume using the Vultr Customer Portal, API, CLI, or Terraform.
- Vultr Customer Portal
- Navigate to Products and select Cloud Storage.
- Click Block Storage.
- Then, select the target Vultr Block Storage volume.
- Click the delete icon to remove the Vultr Block Storage volume.
- Vultr API
- Send a
GETrequest to the List Block Storages endpoint and note the Vultr Block Storage volume ID.console$ curl "https://api.vultr.com/v2/blocks" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
DELETErequest to the Delete Block Storage endpoint and specify a Vultr Block Storage volume ID.console$ curl "https://api.vultr.com/v2/blocks/block-storage-id" \ -X DELETE \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Visit the Delete Block Storage endpoint to view additional attributes to add to your request.
- Vultr CLI
- List all Vultr Block Storage volumes and note the ID. For instance,
6856bb78-e67b-416c-8fc1-2473c66fa016.
-
console
$ vultr-cli block-storage list - Delete a Vultr Block Storage volume by specifying the ID.
console
$ vultr-cli block-storage delete block_storage_idRun
vultr-cli block-storage delete --helpto view all options.
- Terraform
- Open your Terraform configuration for the existing Block Storage resource.
- Remove the
vultr_blockresource block, or destroy it by target.terraformresource "vultr_block" "remote_block_storage" { # ...existing fields (label, region, size_gb, block_type) } # To delete, either remove this block from configuration # or run: terraform destroy -target vultr_block.remote_block_storage
- Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
How to Delete Vultr Block Storage Volume A guide explaining how to permanently remove a Block Storage volume from your Vultr account. Deleting a Vultr Block Storage volume removes the volume from your account and stops further charges. The operation also wipes any data in the volume. Backup any important…
How to Delete Vultr Block Storage Volume A guide explaining how to permanently remove a Block Storage volume from your Vultr account. Deleting a Vultr Block Storage volume removes the volume from your account and stops further charges. The operation also wipes any data in the volume. Backup any important…