---
title: "Remove template"
method: DELETE
path: "/wiki/rest/api/template/{contentTemplateId}"
tags: ["Template"]
---

# Remove template

`DELETE /wiki/rest/api/template/{contentTemplateId}`

Deletes a template. This results in different actions depending on the
type of template:

- If the template is a content template, it is deleted.
- If the template is a modified space-level blueprint template, it reverts
to the template inherited from the global-level blueprint template.
- If the template is a modified global-level blueprint template, it reverts
to the default global-level blueprint template.

 Note, unmodified blueprint templates cannot be deleted.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
        'Admin' permission for the space to delete a space template or 'Confluence Administrator'
        global permission to delete a global template.

## Path parameters

- `contentTemplateId` string, required

## Response `204`

Returned if the template has been successfully been deleted.

## Other responses

- `403` — Returned if; - There is no template with the given ID. - The calling user does not have permission to delete the template.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/revisions/70088490f406/schema)
