diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 460a92ad1..578bc6a43 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -572,7 +572,12 @@ func (s *apiSvc) postSystemReset(w http.ResponseWriter, r *http.Request) { folder := qs.Get("folder") var err error if len(folder) == 0 { - err = resetDB() + for folder := range cfg.Folders() { + err = s.model.ResetFolder(folder) + if err != nil { + break + } + } } else { err = s.model.ResetFolder(folder) }