summary refs log tree commit diff
path: root/docs/admin_api/purge_history_api.rst
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-07-28 14:56:09 +0100
committerErik Johnston <erik@matrix.org>2016-07-28 14:56:09 +0100
commit367b594183c553436bb0338e9f26e42fa46424dc (patch)
tree3ea4ce1cee7367553655cdcc7eaa5d1378363d46 /docs/admin_api/purge_history_api.rst
parentAdd authors to changelog (diff)
downloadsynapse-367b594183c553436bb0338e9f26e42fa46424dc.tar.xz
Add some basic admin API docs
Diffstat (limited to 'docs/admin_api/purge_history_api.rst')
-rw-r--r--docs/admin_api/purge_history_api.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/admin_api/purge_history_api.rst b/docs/admin_api/purge_history_api.rst
new file mode 100644
index 0000000000..986efe40f9
--- /dev/null
+++ b/docs/admin_api/purge_history_api.rst
@@ -0,0 +1,15 @@
+Purge History API
+=================
+
+The purge history API allows server admins to purge historic events from their
+database, reclaiming disk space.
+
+Depending on the amount of history being purged a call to the API may take
+several minutes or longer. During this period users will not be able to
+paginate further back in the room from the point being purged from.
+
+The API is simply:
+
+``POST /_matrix/client/r0/admin/purge_history/<room_id>/<event_id>``
+
+including an ``access_token`` of a server admin.