---
title: "Delete a message template"
method: DELETE
path: "/api/profiles/{profile_id}/templates/{id}"
tags: ["WhatsApp"]
---

# Delete a message template

`DELETE /api/profiles/{profile_id}/templates/{id}`

## Request

- Base URL: `https://api.postproxy.dev`
- URL: `https://api.postproxy.dev/api/profiles/{profile_id}/templates/{id}`
- Auth: HTTP bearer

Deletes one language variant, or every variant when addressed by name with no language. Meta reserves the name for 30 days.

## Query parameters

- `profile_group_id` string
- `language` string

## Response `200`

What was deleted.

- WhatsAppTemplateDeleteResponse
  - `deleted` boolean
  - `scope` 'language' | 'all_languages': Deleting by name with no language removes every language variant.
  - `name` string
  - `language` string

## Other responses

- `401`: Invalid, missing, or insufficient API key permissions.
- `404`: Resource does not exist or is not accessible.
- `422`: Validation failed.

---

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