curl -sS -X DELETE 'https://matrix.example.com/_synapse/admin/v2/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/v2/rooms/!abc123:example.com' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"purge":true}'

Delete a room asynchronously

Starts the same destructive room deletion as the v1 endpoint but returns a delete_id immediately while the purge runs in the background, so your shell is not blocked for minutes. Poll the delete_status endpoint with the room ID until status reads complete. Same warning applies: purge=true removes all room history from the database permanently.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.