IN THIS ARTICLE

Backup Folder Cleanup

Incorrect email!

The article was successfully sent to the email

Backup archives (database, audio, or both) are not automatically removed by TRBOnet. 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.

1. Prepare the Cleanup Script

You may use one of the example scripts below.

1. Open Notepad
2. Copy one of the scripts below into the file
3. Save the file with a .bat extension (for example: BackupCleanup.bat)
Script 1:  Delete files older than 30 days in Backups
REM Remove files older than 30 days
ForFiles /p "C:\ProgramData\Neocom Software\TRBOnet.Enterprise\Backups" /s /d -30 /c "cmd /c del /q @file"
Script 2:  Delete audio folders older than 30 days
REM Remove files older than 30 days
ForFiles /p "C:\ProgramData\Neocom Software\TRBOnet.Enterprise\Audio" /d -30 /c "cmd /c rd /s /q @path"

2. Create a Scheduled Cleanup Task

1. Open Task Scheduler
2. Select ActionCreate Basic Task
Task Scheduler Create Basic Task
3. Enter a task name → Next
Enter task name
4. Select DailyNext
Select Daily trigger
5. Configure start time and recurrence → Next
Configure recurrence settings
6. Select Start a programNext
Select Start a program
7. Click Browse and select your BAT file → Next
Browse for BAT file
8. Confirm → Finish
The task will now appear in Task Scheduler Library.
Task in Scheduler Library

3. Run With Highest Privileges (Required)

To ensure reliable execution:

1. Open Task Scheduler Library
2. Double-click the created task
3. Enable:
Run whether user is logged on or not
Run with highest privileges
Task security options

Helpful?
We're glad this article helped.

Thanks for letting us know. What went wrong?