curl -sS -X POST 'https://matrix.example.com/_synapse/admin/v1/media/quarantine/example.com/abcde12345' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{}'

Category: Matrix & Synapse

curl -sS -X POST 'https://matrix.example.com/_synapse/admin/v1/media/quarantine/example.com/abcde12345' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{}'

Quarantine a single media file

Marks the media as inaccessible so downloads return 404, while keeping the file on disk for later review or unquarantine. Since Synapse 1.128, matching SHA-256 hashes are also flagged, catching re-uploads of the same content. Reverse with the unquarantine endpoint. Prefer this over deletion when you may need evidence.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.