DELETE /api/template-channels/{templateId}/{channelId} Delete a template-channel record, removing the per-channel content for a specific template and channel combination.

Headers

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

Path parameters

templateId
string
required
The template ID.
channelId
string
required
The channel ID.

Example request

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

Example response

{
  "success": true
}
Deleting a template-channel record means the template will no longer deliver content through this channel. The channel itself is not affected.