1
0

purge_remote_media.rst 566 B

1234567891011121314151617181920
  1. Purge Remote Media API
  2. ======================
  3. The purge remote media API allows server admins to purge old cached remote
  4. media.
  5. The API is::
  6. POST /_synapse/admin/v1/purge_media_cache?before_ts=<unix_timestamp_in_ms>
  7. {}
  8. \... which will remove all cached media that was last accessed before
  9. ``<unix_timestamp_in_ms>``.
  10. To use it, you will need to authenticate by providing an ``access_token`` for a
  11. server admin: see `README.rst <README.rst>`_.
  12. If the user re-requests purged remote media, synapse will re-request the media
  13. from the originating server.