Skip to content

Add media remove admin API for remote media to remove it from disk #16072

Open
@matrixbot

Description

@matrixbot

This issue has been migrated from #16072.


Description:

Given an user of mine receives media from a remote user over federation with illegal content and reports it to me, I need to be able to remove it from my server. Putting the file in quarantine is good, but for most illegal content not good enough, as it may still be illegal to keep such files.

So I request an API (or it may become an option of quarantine), which allows admins to remove such files, if identified from the server. Together with the kept entry for quarantine, following my tests, this effectively blocks my server from downloading the file again, making it inaccessible to my users & to the federation via my server.

This can be achieved by hand by logging in to the server, navigating to the media repository, checking the filesystem id of the remote media in the database, and then deleting the files. But that takes way more time & requires more privileges & might create inconsistencies for Synapse. A builtin API can make this process way faster while Synapse can (ideally) prevent & handle such inconsistencies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions