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.
Send a GET
request to the List Block Storages endpoint and note the Vultr Block Storage volume ID.
$ curl "https://api.vultr.com/v2/blocks" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Block Storage endpoint and specify a Vultr Block Storage volume ID.
$ 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.
List all Vultr Block Storage volumes and note the ID. For instance, 6856bb78-e67b-416c-8fc1-2473c66fa016
.
$ vultr-cli block-storage list
Delete a Vultr Block Storage volume by specifying the ID.
$ vultr-cli block-storage delete block_storage_id
Run vultr-cli block-storage delete --help
to view all options.
Open your Terraform configuration for the existing Block Storage resource.
Remove the vultr_block
resource block, or destroy it by target.
resource "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.
No comments yet.