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

# Delete template

`DELETE /api/templates/{template_id}`

## Request

- Base URL: `https://go.urbanairship.com`
- URL: `https://go.urbanairship.com/api/templates/{template_id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/airship/apis/airship-api/docs/api/templates/:template_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a template. If the template is successfully deleted, the response does not include a body.

## Response `200`

The template with given ID has been successfully deleted.

- object
  - `ok` boolean, required: If true, the operation completed successfully and returns an expected response.
  - `operation_id` string, uuid: A unique string identifying the operation, useful for reporting and troubleshooting.

## Other responses

- `401`: Authentication information (the app key and secret or bearer token) was either incorrect or missing.
- `404`: The requested resource doesn't exist.

---

[API](https://skmtc.dev/airship/apis/airship-api.md) - [All operations](https://skmtc.dev/airship/apis/airship-api/llms.txt) - [OpenAPI document](https://skmtc.dev/airship/apis/airship-api/revisions/bd6ab947117a?raw)
