Summary
This article describes how to automate the cleanup of TRBOnet backup folders (database and audio) using a BAT script and Windows Task Scheduler, since TRBOnet does not remove backup archives automatically.
If you need to regularly delete older files, you can automate cleanup using Windows Task Scheduler or third-party tools.
Below is the full procedure for enabling automated backup folder cleanup.
Step 1: Prepare the Cleanup Script
You may use one of the example scripts below.
ForFiles /p "C:\ProgramData\Neocom Software\TRBOnet.Enterprise\Backups" /s /d -30 /c "cmd /c del /q @file"
ForFiles /p "C:\ProgramData\Neocom Software\TRBOnet.Enterprise\Audio" /d -30 /c "cmd /c rd /s /q @path"
Step 2: Create a Scheduled Cleanup Task
Step 3: Run With Highest Privileges (Required)
To ensure reliable execution: