Skip to content

Instantly share code, notes, and snippets.

@joenas
Created September 4, 2020 07:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/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