---
title: "Delete a chatAudit"
method: DELETE
path: "/chatAudits/{chatAuditId}"
tags: ["chatAudits"]
---

# Delete a chatAudit

`DELETE /chatAudits/{chatAuditId}`

## Path parameters

- `chatAuditId` string, required

## Response `200`

Deleted chatAudit

- ChatAuditResponse — A ChatAudit record tracks which messages a given staff user has read within a patient chat, linking a reader, a patient, and the last message read along with the timestamp it was read at. It exists purely to support read receipt and unread message tracking so the product can show staff which patient conversations still need attention. This underpins inbox style unread counts and message triage across the chat feature.
  - `_id` string, required — Luma's internal ID of an object.
  - `user` string — The ID of the root account user.
  - `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.
  - `createdAt` string, date-time — The date/time when this object was created.
  - `updatedAt` string, date-time — The date/time when this object was updated.
  - `reader` string — The message reader ID
  - `patient` string — The patient ID
  - `lastMessage` string — The last message ID
  - `readAt` string, date-time — When the message was read

## 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)
