Synapse: Delete a room (Admin API)

Created on 27 Nov 2019  路  6Comments  路  Source: matrix-org/synapse

Description:

Server admins are requesting a way to "delete rooms" and it would be good to create some tooling to help with this.

It is possible that this could just be a call to the "room shutdown" API (currently undocumented?) followed by a call to "room purge" admin API? But it would be good to know if this is the correct way to be doing so, and is probably beneficial to combine it in to a single API call?

admin-api feature

Most helpful comment

"room shutdown" API (currently undocumented?)

https://github.com/matrix-org/synapse/issues/4784

I really wish people wouldn't write APIs without documenting them.

All 6 comments

"room shutdown" API (currently undocumented?)

https://github.com/matrix-org/synapse/issues/4784

I really wish people wouldn't write APIs without documenting them.

is there any progress on this topic?

@neilisfragile wasn't the request here for a new API that would combine the room shutdown API and the purge room API into one request?

@aaronraimist good point, thanks for the catch.

The API should be DELETE /_synapse/admin/v1/rooms/<room-id>
Internally the API should:

  • Kick all Users from this room
  • Purge room content
  • Remove room

See also https://github.com/matrix-org/synapse/pull/7317

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexrashed picture alexrashed  路  4Comments

matrixbot picture matrixbot  路  5Comments

cuibonobo picture cuibonobo  路  5Comments

ara4n picture ara4n  路  5Comments

clokep picture clokep  路  4Comments