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 Cloud GPU instance using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Instances endpoint and note the target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Instance endpoint to destroy the instance.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all instances in your Vultr account and note the target instance's ID.
$ vultr-cli instance list
Destroy the instance.
$ vultr-cli instance delete <instance_id>
Open your Terraform configuration and locate the Cloud GPU instance resource.
Remove the resource block or destroy it by target.
resource "vultr_instance" "gpu" {
label = "gpu-instance-1"
region = "ewr"
plan = "vcg-1c-8gb"
os_id = 2284
hostname = "gpu-instance-1"
}
# To delete, either remove this block from configuration
# or run: terraform destroy -target vultr_instance.gpu
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
No comments yet.