--- title: "Leave Rooms (Realtime)" slug: "leave-rooms-realtime" updated: 2026-05-14T21:48:48Z published: 2026-05-14T21:48:48Z canonical: "developer.rocket.chat/leave-rooms-realtime" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # Leave Rooms (Realtime) ![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg) You can leave any room except for direct messages, and you cannot leave rooms where you are the last owner. | Method | Requires Auth | | --- | --- | | `leaveRoom` | Yes | ## Payload parameters | Argument | Example | Required | Description | | --- | --- | --- | --- | | `roomId` | `64a1f373376181965ab77f54` | Required | The room ID. | ## Example call ```json {    "msg": "method",    "method": "leaveRoom",    "id": "11",    "params": [        "64a1f540376181965ab77f5b"    ] } ``` ## Example response ```json {    "msg": "result",    "id": "11" } ```