This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
We should have an admin api to delete local media #6459
Labels
Comments
@richvdh I think about it to write this API. What ist to do? Delete files is only on part. Should we also delete events? Or do you have a hint what is to do (DB tables or anything else)? |
@dklimpel for this, I was definitely not thinking of deleting events that reference the media: not least because that is hard to do reliably. If I remember rightly, the reason I wanted this was to remove some large videos that someone had uploaded to our server, without correct copyright. I think that the things we need to delete, beyond the file media itself, are:
|
dklimpel
added a commit
to dklimpel/synapse_archive
that referenced
this issue
Oct 11, 2020
related to: matrix-org#6459 Add `DELETE /_synapse/admin/v1/media/<server_name>/<media_id>` to delete a single file from server
4 tasks
anoadragon453
pushed a commit
that referenced
this issue
Oct 26, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For various reasons, it is useful to be able to remove pieces of media from the local content repo. Ideally we'd have an API to do this, which also removes any associated thumbnails.
We have the quarantine_media API, but (a) that applies to rooms rather than individual bits of media (#5956), and (b) it doesn't actually delete the media.
It's also somewhat separate to the ability of users to remove their own media (see https://github.com/matrix-org/matrix-doc/issues/790), which again probably wouldn't actually delete the media files (to allow for moderation), and would send a deletion request over federation.
It's closely related to matrix-org/matrix-spec-proposals#3479, though that is more about finding the media.
The text was updated successfully, but these errors were encountered: