---
title: "Delete message payloads"
method: POST
path: "/api/v1/app/{app_id}/msg/bulk-expunge"
tags: ["Message"]
---

# Delete message payloads

`POST /api/v1/app/{app_id}/msg/bulk-expunge`

Delete the payloads from the given messages under the current application

Useful in cases when a message was accidentally sent with sensitive content.
A message can't be replayed or resent once its payload has been deleted
(or has expired).

## Path parameters

- `app_id` string, required — The Application's ID or UID.

## Headers

- `idempotency-key` string

## Request body

- BulkExpungeContentsIn
  - `ids` string[] — Message ID or UID to delete

## Response `200`

- BulkExpungeContentsOut
  - `results` object, required — Results of expunging (by ID)

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

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