---
title: "Strips all non-integrity-critical information out of an event."
method: PUT
path: "/_matrix/client/v3/rooms/{roomId}/redact/{eventId}/{txnId}"
tags: ["Room participation"]
---

# Strips all non-integrity-critical information out of an event.

`PUT /_matrix/client/v3/rooms/{roomId}/redact/{eventId}/{txnId}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/rooms/{roomId}/redact/{eventId}/{txnId}`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/rooms/:roomId/redact/:eventId/:txnId/put.ts> (a function with typed inputs; its response is checked against the schema)

Strips all information out of an event which isn't critical to the
integrity of the server-side representation of the room.

This cannot be undone.

Any user with a power level greater than or equal to the `m.room.redaction`
event power level may send redactions for their own events in the room. If
the user's power level is also greater than or equal to the `redact` power
level of the room, the user may redact events sent by other users.

Server administrators may redact events sent by users on their server.

## Path parameters

- `roomId` string, mx-room-id, required
- `eventId` string, mx-event-id, required
- `txnId` string, required

## Request body

- object
  - `reason` string: The reason for the event being redacted.

## Response `200`

An ID for the redaction event.

- object
  - `event_id` string, mx-event-id: A unique identifier for the event.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
