Purpose
This procedure updates the CleanUp > RetentionWindow setting in the Service Host configuration so reports older than 30 days are automatically removed instead of 180 days.
Step 1: Open Notepad as Administrator
Click Start
Type Notepad
Right-click Notepad
Select Run as administrator
Click Yes if prompted by UAC
Running Notepad as administrator is required to edit files under Program Files.
Step 2: Open the appsettings.json File
In Notepad, click File → Open
Navigate to the Boring Server Complete Installation path.
The default installation path is below.
C:\Program Files\The Boring Lab\Service Host\
Change the file filter from Text Documents (*.txt) to All Files
Select appsettings.json
Click Open
Step 3: Locate the CleanUp Section
Scroll down to the ReportRuns section and find:
"Cleanup": {
"Enabled": true,
"RunInterval": "04:00:00",
"RetentionWindow": "180.00:00:00"
}
Step 4: Update the RetentionWindow Value
Change the value from 180 days to 30 days:
"RetentionWindow": "30.00:00:00"
Format is days.hours:minutes:seconds
Step 5: Save the File
Click File → Save
Close Notepad
Step 6: Restart the Boring Service Host
For the change to take effect:
Open Services
Restart Boring Service Host
Comments
0 comments
Article is closed for comments.