Skip to content

Instantly share code, notes, and snippets.

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