Skip to content

chore: clarify database resetting options#1013

Merged
acolomb merged 4 commits into
syncthing:mainfrom
acolomb:reset-options
Jun 8, 2026
Merged

chore: clarify database resetting options#1013
acolomb merged 4 commits into
syncthing:mainfrom
acolomb:reset-options

Conversation

@acolomb

@acolomb acolomb commented Jun 7, 2026

Copy link
Copy Markdown
Member

The --reset-deltas and --reset-database options were removed in Syncthing v2. Fix leftover references and in the process, document the current syncthing debug ... subcommand group, where reset-database now lives.

See individual commit messages for details. The last one I'm not quite sure about. I resurrected the removed text from the --reset-database option docs, but couldn't verify that the corresponding API endpoint actually does recreate .stfolder markers. Maybe this behavior was also removed in v2? I haven't dug deep enough to be sure.

acolomb added 4 commits June 7, 2026 21:57
This was removed in Syncthing v2.  Simply avoid mentioning it.

Signed-off-by: André Colomb <src@andre.colomb.de>
Clarify that "cli debug" commands do not require Syncthing to be
stopped, while in fact removing the database completely should not be
done while it is running.  Point to the corresponding API endpoint
/rest/system/reset for more granular DB reset functionality.

Signed-off-by: André Colomb <src@andre.colomb.de>
Currently not used as a target anywhere, but might prove useful for a
future FAQ.

Add the includes top-level directory to the exclusion list for Sphinx.
Documents in there are always used via an include:: directive, so
processing them as (unreachable) standalone documents leads to
duplicate label warnings.

Signed-off-by: André Colomb <src@andre.colomb.de>
The cautionary note was removed in v2 together with the whole option.
Resurrect the text from the old option doc.

Signed-off-by: André Colomb <src@andre.colomb.de>
@acolomb

acolomb commented Jun 7, 2026

Copy link
Copy Markdown
Member Author

@calmh calmh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

@acolomb

acolomb commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@calmh could you clarify whether the .stfolder creation note is still relevant?

@calmh

calmh commented Jun 8, 2026

Copy link
Copy Markdown
Member

It's technically correct, I'm not certain about the relevance. The normal warning about missing files getting marked deleted won't apply since the database is getting reset, but I suppose it could result in a folder marker getting created where one wasn't expected if a disk wasn't mounted etc, so, sure.

@acolomb acolomb merged commit eacd374 into syncthing:main Jun 8, 2026
4 checks passed
@acolomb acolomb deleted the reset-options branch June 8, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants