Delete a Vultr instance template to permanently remove it. Templates referenced by active clusters cannot be deleted until the association is removed.
Deleting an instance template permanently removes it from your account. Instances that were previously created from the template continue to run and are not affected.
This guide explains how to delete an instance template using the Vultr API.
Send a GET request to the List Instance Templates endpoint to retrieve all templates.
$ curl "https://api.vultr.com/v2/instances/templates" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the id of the template you want to delete.
Send a DELETE request to the Delete Instance Template endpoint to delete the template. Replace {template-id} with the template id.
$ curl "https://api.vultr.com/v2/instances/templates/{template-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
A successful deletion returns an HTTP 204 No Content response with no response body.
Send a GET request to the List Instance Templates endpoint to retrieve all templates.
$ curl "https://api.vultr.com/v2/instances/templates" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Verify that the deleted template no longer appears in the list.