Permanently removes a resource from your Vultr account.
Deleting a reserved IP detaches it from any linked instances and removes it from your Vultr account. You can re-create a reserved IP after deletion if it's available in the specific Vultr location.
Follow this guide to delete a reserved IP using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Reserved IPs endpoint and note the target reserved IP's ID in your output.
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Reserved IP endpoint to delete the reserved IP.
$ curl "https://api.vultr.com/v2/reserved-ips/{reserved-ip}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all reserved IPs in your Vultr account and note the target reserved IP's ID.
$ vultr-cli reserved-ip list
Delete the reserved IP.
$ vultr-cli reserved-ip delete <reserved-ip-id>
Open your Terraform configuration where the Reserved IP is defined.
Remove the vultr_reserved_ip
resource block, or destroy it by target.
resource "vultr_reserved_ip" "rip" {
region = "ewr"
ip_type = "v4"
label = "web-rip"
}
# To delete, either remove this block from configuration
# or run: terraform destroy -target vultr_reserved_ip.rip
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
No comments yet.