---
title: "Stop the requesting user remembering about a particular room."
method: POST
path: "/_matrix/client/v3/rooms/{roomId}/forget"
tags: ["Room membership"]
---

# Stop the requesting user remembering about a particular room.

`POST /_matrix/client/v3/rooms/{roomId}/forget`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/rooms/{roomId}/forget`
- 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/forget/post.ts> (a function with typed inputs; its response is checked against the schema)

This API stops a user remembering about a particular room.

In general, history is a first class citizen in Matrix. After this API
is called, however, a user will no longer be able to retrieve history
for this room. If all users on a homeserver forget a room, the room is
eligible for deletion from that homeserver.

If the user is currently joined to the room, they must leave the room
before calling this API.

## Path parameters

- `roomId` string, mx-room-id, required

## Response `200`

The room has been forgotten.

- object

## Other responses

- `400`: The user has not left the room
- `429`: This request was rate-limited.

---

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