---
title: How to Delete an Instance Template
url: https://docs.vultr.com/products/compute/clusters/instance-templates/delete
description: Delete a Vultr instance template using the API, and keep a cluster-created template by promoting it to permanent first.
publish_date: 2026-10-27T21:32:37.195721Z
last_updated: 2026-10-28T17:02:43.712727Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Deleting an instance template permanently removes it from your account. Instances that you already created from the template continue to run and remain unaffected.

> [!NOTE]
> * You cannot delete an instance template while a cluster is using it. [Deleting the cluster](https://docs.vultr.com/products/compute/clusters/delete) also deletes a template that it created automatically.
> * To keep the template after its cluster is gone, promote it to a permanent template first. Promoting is one-way. A permanent template cannot be made ephemeral again.

This guide explains how to delete an instance template using the Vultr API.

1. (Optional) To keep a cluster-created template instead of deleting it, send a `POST` request to the [**Promote Instance Template** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/promote-instance-template). Replace `{template-id}` with the template's ID.

    ```console
    $ curl "https://api.vultr.com/v2/instances/templates/{template-id}/promote" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    A successful request returns an HTTP `200 OK` response with the template's `ephemeral` field now `false`. Promoting is one-way. A permanent template cannot be made ephemeral again.

1. Send a `GET` request to the [**List Instance Templates** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/list-instance-templates) to retrieve all templates.

    ```console
    $ 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.

1. Send a `DELETE` request to the [**Delete Instance Template** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/delete-instance-template) to delete the template. Replace `{template-id}` with the template's ID.

    ```console
    $ 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.

1. Send a `GET` request to the [**List Instance Templates** endpoint](https://www.vultr.com/api/#tag/instance-templates/operation/list-instance-templates) to retrieve all templates.

    ```console
    $ 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.
