---
title: "Delete a template"
method: DELETE
path: "/v1/projectId/{projectId}/templates/{id}"
tags: ["Templates"]
---

# Delete a template

`DELETE /v1/projectId/{projectId}/templates/{id}`

## Request

- Base URL: `https://api.bluefox.email`
- URL: `https://api.bluefox.email/v1/projectId/{projectId}/templates/{id}`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, required
- `id` string, required

## Response `200`

Deleted

- object
  - `status` integer
  - `result` Template
    - `_id` string
    - `name` string
    - `subject` string
    - `previewText` string
    - `tags` string[]
    - `onProjectCreation` 'do-nothing' | 'set-as-transactional' | 'set-as-triggered' | 'set-as-campaign'
    - `usedVariables` string[]
    - `usedComponents` string[]
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `403`: Missing or invalid API key
- `404`: Templates not found

---

[API](https://skmtc.dev/bluefox/apis/bluefox-email-public-api.md) · [All operations](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/revisions/fa1a0a835c7f?raw)
