Delete Channel

Remove a public channel.

HTTP MethodURLRequires Auth

POST

/api/v1/channels.delete

Body Parameters

KeyExample ValueDescription

roomId* or roomName*

ByehQjC44FwMeiLbX or general

The channel ID or name that you want to delete. You must enter at least one of the parameters.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type: application/json" \
     https://localhost:3000/api/v1/channels.delete \
     -d '{ 
          "roomName": "channelname" }'

Example Response

{
   "success": true
}

Change Log

VersionDescription

0.71.0

Removed channel property

0.49.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.