---
title: "Delete template"
method: DELETE
path: "/templates/{templateID}"
tags: ["templates"]
---

# Delete template

`DELETE /templates/{templateID}`

Delete a template

## Path parameters

- `templateID` string, required

## Response `204`

The template was deleted successfully

## Other responses

- `401` — Authentication error
- `500` — Server error

## Changes

- **2026-08-20** `e01b3f5506fe` — 2 info
  - added the optional property `error_code` to the response with the `401` status
  - added the optional property `error_code` to the response with the `500` status
- **2026-07-24** `93ed246a4c10` — 2 info
  - the endpoint scheme security `AdminApiKeyAuth AND AdminTeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was removed from the API
- **2026-05-27** `e13ef89d456c` — 1 info
  - the endpoint scheme security `AuthProviderBearerAuth AND AuthProviderTeamAuth` was added to the API
- **2026-01-27** `05ac348d449f` — 2 info
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth` was removed from the API
- **2025-08-21** `018224fe7238` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API

[Full history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/templates/:templateID/delete.md)

---

[API](https://skmtc.dev/e2b-dev/apis/e2b-api.md) · [All operations](https://skmtc.dev/e2b-dev/apis/e2b-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/e2b-dev/e2b-api/revisions/e01b3f5506fe/schema)
