---
title: "Expunge all message contents"
method: POST
path: "/api/v1/app/{app_id}/msg/expunge-all-contents"
tags: ["Message"]
---

# Expunge all message contents

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

Delete all message payloads for the application.

This operation is only available in the <a href="https://svix.com/pricing" target="_blank">Enterprise</a> plan.

A completed task will return a payload like the following:
```json
{
  "id": "qtask_33qen93MNuelBAq1T9G7eHLJRsF",
  "status": "finished",
  "task": "application.purge_content",
  "data": {
    "messagesPurged": 150
  }
}
```

## Path parameters

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

## Headers

- `idempotency-key` string

## Response `202`

- ExpungeAllContentsOut
  - `id` string, required — The QueueBackgroundTask's ID.
  - `status` 'running' | 'finished' | 'failed', required
  - `task` 'endpoint.replay' | 'endpoint.recover' | 'application.stats' | 'message.broadcast' | 'sdk.generate' | 'event-type.aggregate' | 'application.purge_content' | 'endpoint.bulk-replay', required
  - `updatedAt` string, date-time, required

## 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/16dbcc056c48/schema)
