Skip to content

Instantly share code, notes, and snippets.

@joenas
Created September 4, 2020 07:11
Show Gist options
  • Save joenas/fa8b117169c14fe9d761a8b5731614b4 to your computer and use it in GitHub Desktop.
Save joenas/fa8b117169c14fe9d761a8b5731614b4 to your computer and use it in GitHub Desktop.
#!/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