Learn how to permanently remove custom ISO files from your Vultr account when theyre no longer needed.
Deleting ISO Images for Vultr instances allows you to completely remove the file from your account and make room for more images. Vultr only permits two ISO files at a time. Removing an ISO file doesn't affect any Cloud Compute instances you've provisioned using the image.
Follow this guide to delete ISO images for Vultr instances using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List ISOs endpoint to list all ISOs.
$ curl "https://api.vultr.com/v2/iso" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete ISO endpoint and specify an ISO ID to delete the ISO file.
$ curl "https://api.vultr.com/v2/iso/iso_id" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Visit the Delete ISO endpoint to view additional attributes to add to your request.
List all cloud compute instances and note the instance ID.
$ vultr-cli instance list
List all ISOs and note the ISO ID.
$ vultr-cli iso list
Delete an ISO by specifying an ISO ID.
$ vultr-cli iso delete iso_id
Run vultr-cli iso delete --help
to view all options.
Open your Terraform configuration where the ISO resource was defined.
Remove the vultr_iso
resource block, or destroy it by target.
resource "vultr_iso" "custom_iso" {
url = "https://example.com/remote_iso_file_url.iso"
}
# To delete, either remove this block from configuration
# or run: terraform destroy -target vultr_iso.custom_iso
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.