aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-12-17 16:31:12 -0600
committerGitHub <noreply@github.com>2024-12-17 16:31:12 -0600
commitac4518147eebd921edb7cf465013eabc37fae4e7 (patch)
tree5de10a59601042e0c9bd9e4a168e2e26a9165342 /docs
parentf1b250ccd31bfbb38d47ebd3570c072539c98430 (diff)
parent57704f7a402bd779c74b42b460c6bb0d206cbe0c (diff)
downloadslskd-ac4518147eebd921edb7cf465013eabc37fae4e7.tar.gz
Merge pull request #1257 from slskd/search-retention
Add the ability to configure search record retention
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/config.md b/docs/config.md
index 9d17974f..e83fc1a9 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -895,17 +895,20 @@ filters:
By default, most things created by the application are retained indefinitely; they have to be removed manually by the user. Users can optionally configure certain things to be removed or deleted automatically after a period of time.
+Completed searches can be configured to be removed from the UI and 'hard' deleted from the database. It's a good idea to set this to something relatively short, as old searches have diminishing value as they age and the records contain a lot of data.
+
Transfers can be configured to be removed from the UI after they are complete by specifying retention periods for uploads and downloads separately, and by transfer state; succeeded, errored, and cancelled.
Files (on disk) can be configured to be deleted after the age of their last access time exceeds the configured time. Completed and incomplete files can be configured separately.
Application logs are removed after 180 days by default, but this can be configured as well.
-All retention periods are specified in minutes.
+All retention periods are specified in minutes, with the exception of `logs`, which is in days.
#### **YAML**
```yaml
retention:
+ search: 1440 # 1 day
transfers:
upload:
succeeded: 1440 # 1 day