DELETE /api/templates/{id} Permanently delete a template and its associated template-channel records.

Headers

appid
string
required
Your CometChat App ID.
apikey
string
required
Your CometChat API Key.

Path parameters

id
string
required
The template ID to delete.

Example request

curl -X DELETE https://{appId}.api-{region}.cometchat.io/v3/business-messaging/api/templates/665b2c3d4e5f6a7b8c9d0e1f \
  -H "appid: YOUR_APP_ID" \
  -H "apikey: YOUR_API_KEY"

Example response

{
  "success": true
}
Deleting a template is permanent. All template-channel content linked to this template will also be removed. Consider archiving the template instead if you want to preserve it for historical reference.