element-hq / element-hq/synapse

Support listing media by size, upload data, room, user etc in the admin API

Open
#11,986 0 comments 0 reactions 0 assignees View on GitHub
A-Admin-API A-Media-Repository T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#11986](https://github.com/matrix-org/synapse/issues/11986).

---

**Description:**

When trying to reduce the size of your media repo it would be useful to be able to query the admin API to list (the largest) files by user / room etc.

This would let you ask questions like "what rooms are the largest files in", "what rooms are taking the most space", "what user is uploading the most media by size" and then using this output to make delete calls.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing admin API and media repository entry points. Define a listing that can identify media by size, uploader, room, and upload data, and confirm that its output supports subsequent delete calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.