From ec9ade33c2bb8b3db259f0ce9c554b46bbcf311e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 13 Jun 2015 22:34:37 +0200 Subject: [PATCH] Update /rest/system/reset to new behavior --- rest/system-reset-post.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rest/system-reset-post.rst b/rest/system-reset-post.rst index 42ee18863..8dbf98fea 100644 --- a/rest/system-reset-post.rst +++ b/rest/system-reset-post.rst @@ -1,7 +1,9 @@ POST /rest/system/reset ======================= -Post with empty body to immediately *reset* Syncthing. This means -renaming all folder directories to temporary, unique names, wiping all -indexes and restarting. This should probably not be used during normal -operations... +Post with empty body to erase the current index database and restart +Syncthing. With no query parameters, the entire database is erased from disk. +By specifying the ``folder`` parameter with a valid folder ID, only +information for that folder will be erased:: + + $ curl -X POST -H "X-API-Key: abc123" http://localhost:8384/rest/system/reset?folder=default