Learn how to permanently delete a Vultr Bare Metal Instance and all associated data from your account.
Destroying an instance removes the public IP address and deletes the server from your Vultr account. Destroying an instance cannot be reversed and any instance data cannot be recovered unless a backup or snapshot is available in your Vultr account.
Follow this guide to destroy a Vultr Bare Metal instance using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Bare Metal Instances endpoint and note the target instance's ID.
$ curl "https://api.vultr.com/v2/bare-metals" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Bare Metal endpoint to destroy the instance.
$ curl "https://api.vultr.com/v2/bare-metals/{baremetal-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all Bare Metal instances available in your Vultr account and note the target instance's ID.
$ vultr-cli bare-metal list
Destroy the instance.
$ vultr-cli bare-metal delete <instance_id>
Open your Terraform configuration and locate the Bare Metal server resource.
Remove the resource block or destroy it by target.
resource "vultr_bare_metal_server" "bm1" {
label = "bm1"
region = "ewr"
plan = "vbm-4c-32gb"
os_id = 2284
hostname = "bm1"
}
# To delete, either remove this block from configuration
# or run: terraform destroy -target vultr_bare_metal_server.bm1
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
No comments yet.