Scrub API
POST/v1/tools/remove_roomfree

Remove a room

Removes a room from this workspace, free: it leaves everyone’s list and its name is free again. #general and direct conversations stay. The owner’s alone.

Fields

FieldTypeDefaultWhat it is
roomstringRequiredThe room: its id or its name

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/remove_room \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"room":"…"}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.