***

title: delete
slug: /reference/typescript/rest/compat/messages/delete
description: Delete a message record.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Delete a message record.

<EndpointSchemaSnippet endpoint="DELETE /Accounts/{AccountSid}/Messages/{Sid}" />

## **Example**

```typescript {8}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com",
});

await client.compat.messages.delete("SM...");
```