How to Destroy a Vultr Cloud GPU Instance
-
by Blog Admin
- 12
How to Destroy a Vultr Cloud GPU Instance
Learn how to permanently delete a Vultr Cloud GPU Instance and all associated data.
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.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Cloud GPU instance to open its management page.
- Click Destroy Server on the top-right navigation menu to destroy the server instance.
- Check the confirmation prompt and click Destroy Server to apply changes.
Vultr API
- Send a
GET
request to the List Instances endpoint and note the target instance’s ID.console$ 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.console$ curl "https://api.vultr.com/v2/instances/{instance-id}" \ -X DELETE \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- List all instances in your Vultr account and note the target instance’s ID.
console
$ vultr-cli instance list
- Destroy the instance.
console
$ vultr-cli instance delete <instance_id>
Terraform
- Open your Terraform configuration and locate the Cloud GPU instance resource.
- Remove the resource block or destroy it by target.
terraform
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.
How to Destroy a Vultr Cloud GPU Instance Learn how to permanently delete a Vultr Cloud GPU Instance and all associated data. 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…
How to Destroy a Vultr Cloud GPU Instance Learn how to permanently delete a Vultr Cloud GPU Instance and all associated data. 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…