---
title: "Delete Room"
slug: "delete-room"
updated: 2026-09-03T14:50:33Z
published: 2026-09-03T14:50:33Z
canonical: "developer.rocket.chat/delete-room"
stale: true
---
> ## 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.
# Delete Room
Post/api/v1/rooms.delete
Delete a room from the workspace. The following permissions are required:
- `delete-c`: To delete a public room.
- `delete-d`: To delete direct messages.
- `delete-p`: To delete private rooms.
- `delete-team`: To delete a team.
- `delete-team-channel`: To delete a channel within a team, also requires the `delete-c` permission.
- `delete-team-group`: To delete a private channel within a team, also requires the `delete-p` permission.
> You can't use this endpoint to delete a team's main room. Use [Delete a Team endpoint](https://developer.rocket.chat/apidocs/delete-a-team) instead.
### Changelog
| Version | Description |
| --- | --- |
| 5.4.0 | Added |
Header parametersX-Auth-TokenstringRequired
The `authToken` of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired
The `userId` of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Body parametersobject roomIdstring Required
The room ID that you want to delete.
ExampleByehQjC44FwMeiLbX
Responses200
OK
Success
```json
{
"success": true
}
```
object successboolean
400
Bad Request
Example 1: Missing roomId
```json
{
"success": false,
"error": "The 'roomId' param is required"
}
```
Example 2: Missing Permission
```json
{
"success": true,
"error": "string"
}
```
Example 3: Cannot Delete Team Channel
```json
{
"success": false,
"error": "Cannot delete a team channel [error-cannot-delete-team-channel]",
"errorType": "error-cannot-delete-team-channel",
"details": {
"method": "eraseRoom"
}
}
```
object successboolean
errorstring
401
Unauthorized
Authorization Error
```json
{
"status": "error",
"message": "You must be logged in to do this."
}
```
object statusstring
messagestring