---
title: "Remove a template"
method: DELETE
path: "/custom_templates/{id}"
tags: ["custom_templates"]
---

# Remove a template

`DELETE /custom_templates/{id}`

Remove a template.
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Response `204`

Success

## Other responses

- `400` — Invalid request
- `403` — Access denied to resource
- `404` — Template not found
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
