curl -sS -X DELETE 'https://matrix.example.com/_synapse/admin/v1/rooms/!abc123:example.com' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"purge":true}'

Category: Matrix & Synapse

curl -sS -X DELETE 'https://matrix.example.com/_synapse/admin/v1/rooms/!abc123:example.com' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"purge":true}'

Delete and purge a room

WARNING: this shuts down the room and removes all local users from it, and with purge=true wipes every trace of it from your database. It can take minutes on large rooms and cannot be undone. Optionally pass new_room_user_id to move members into a replacement room instead of leaving them stranded. The v2 endpoint runs the same job asynchronously.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.