---
title: "Delete a PatientMessageTemplate"
method: DELETE
path: "/patientMessageTemplates/{patientMessageTemplateId}"
tags: ["patientMessageTemplates"]
---

# Delete a PatientMessageTemplate

`DELETE /patientMessageTemplates/{patientMessageTemplateId}`

## Path parameters

- `patientMessageTemplateId` string, required

## Response `200`

Deleted patientMessageTemplate

- PatientMessageTemplatesResponse
  - `deleted` 0 | 1 — Flag for logical deletion where 1 means deleted.
  - `createdBy` string — The ID of the user who created this object.
  - `updatedBy` string — The ID of the user who updated this object.
  - `deletedBy` string — The ID of the user who deleted this object.
  - `createdAt` string, date-time — The date/time when this object was created.
  - `updatedAt` string, date-time — The date/time when this object was updated.
  - `deletedAt` string, date-time — The date/time when this object was deleted.
  - `_id` string — Luma's internal ID of an object.
  - `user` string — The ID of the root account user.
  - `name` string
  - `message` string
  - `language` 'ar' | 'bn' | 'cn' | 'de' | 'en' | 'es' | 'fa' | 'fl' | 'fr' | 'gr' | 'gu' | 'hi' | 'ht' | 'hy' | 'it' | 'ja' | 'km' | 'ko' | 'mr' | 'my' | 'pa' | 'pl' | 'pt' | 'ru' | 'so' | 'th' | 'ti' | 'ur' | 'vi' | 'zh-t' | 'zh'
  - `type` 'chat' | 'broadcast'
  - `channel` 'sms' | 'email' | 'voice' | 'whatsapp'
  - `autoCloseChat` boolean

## Other responses

- `401` — Not authenticated
- `403` — Access token does not have the required scope

---

[API](https://skmtc.net/lumahealth/apis/rest-service.md) · [All operations](https://skmtc.net/lumahealth/apis/rest-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lumahealth/rest-service/revisions/d3c75c2a2f1d/schema)
