summary refs log tree commit diff
path: root/contrib/purge_api/README.md
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-11-07 14:06:41 +0000
committerGitHub <noreply@github.com>2018-11-07 14:06:41 +0000
commitc8ba79327b2a9c56ab98bee15c345d51f43b41a4 (patch)
treea443fb008b2416a32b41a2d40b5cc0797059fd4c /contrib/purge_api/README.md
parentRemove some boilerplate in tests (#4156) (diff)
parentadd purge_history.sh and purge_remote_media.sh scripts to contrib/purge_api/ (diff)
downloadsynapse-c8ba79327b2a9c56ab98bee15c345d51f43b41a4.tar.xz
Merge pull request #4155 from rubo77/purge-api
add purge_history.sh and purge_remote_media.sh scripts
Diffstat (limited to 'contrib/purge_api/README.md')
-rw-r--r--contrib/purge_api/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/purge_api/README.md b/contrib/purge_api/README.md
new file mode 100644
index 0000000000..000bf35ca7
--- /dev/null
+++ b/contrib/purge_api/README.md
@@ -0,0 +1,16 @@
+Purge history API examples
+==========================
+
+# `purge_history.sh`
+
+A bash file, that uses the [purge history API](/docs/admin_api/README.rst) to 
+purge all messages in a list of rooms up to a certain event. You can select a 
+timeframe or a number of messages that you want to keep in the room.
+
+Just configure the variables DOMAIN, ADMIN, ROOMS_ARRAY and TIME at the top of
+the script.
+
+# `purge_remote_media.sh`
+
+A bash file, that uses the [purge history API](/docs/admin_api/README.rst) to 
+purge all old cached remote media.