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

Category: Matrix & Synapse

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

Quarantine all media uploaded by a user

Blocks downloads of all local media a local user has uploaded, useful when they shared something harmful. Remote users' uploads are not covered, so quarantine per-media on their origin server instead. The files remain on disk until explicitly deleted. Reverse with the per-media unquarantine endpoint.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.