Created
September 4, 2020 07:11
-
-
Save joenas/fa8b117169c14fe9d761a8b5731614b4 to your computer and use it in GitHub Desktop.
Synapse purge remote media (https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_remote_media.rst)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
timestamp=$(($(date +%s%N)/1000000)) | |
curl --header "Authorization: Bearer $1" -d '{}' -H 'Content-Type: application/json' localhost:8008/_synapse/admin/v1/purge_media_cache?before_ts=$timestamp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment