---
title: "Delete Template Route"
method: DELETE
path: "/companies/{company_id}/templates/{template_id}"
tags: ["creatives"]
---

# Delete Template Route

`DELETE /companies/{company_id}/templates/{template_id}`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/templates/{template_id}`
- Auth: none declared

Delete a template for good, with its renders (decision 201). The body must
repeat its exact name (400 ``deletion-refused``); a template an output feed, a
template rule or an experiment uses is 409 ``template-in-use``. The answer says
how many renders and files went with it.

## Path parameters

- `company_id` string, uuid, required: Company id
- `template_id` string, uuid, required

## Request body

- TemplateDeleteRequest: The template's exact name, typed to confirm deleting it.
  - `confirm_name` string, required

## Response `200`

Successful Response

- RenderDeleteOut: What a delete removed. ``files`` trails ``renders`` when a render never produced one (pending or failed) or its file is shared.
  - `renders` integer, required
  - `files` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
