matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Admin API to redact message event #15259

Open ktnhuni opened 1 year ago

ktnhuni commented 1 year ago

Is there any way for a API admin to delete a specific message event from a room?

DMRobertson commented 1 year ago

We don't have an easy way to do this via the Admin API at present. Most people use a bot like Mjolnir (or perhaps the fork Draupnir---note, not maintained by the Matrix.org Foundation) for event deletion like this (redaction).

If the message creator or a room admin/moderator belongs to your homeserver, you could

However this is a "nuclear" approach and takes over a user's account---it's best used as a last resort only.

DMRobertson commented 1 year ago

I suggest we leave this issue open as a request to provide an API that does something like this. For your specific situation, I'll have to redirect you to the Synapse Admins room for community support.