best way to remove deleted files periodically and automatically

Hi all, Is there a way to to remove deleted files periodically and automatically (something like cron)?

thanks in advance

1 votes

1 answers

1524 views

ANSWER

What delete files are you talking about? Those in the trash? The orphaned binaries of removed files in the binary manager store?
08/07/2014

I'm talking about orphaned binaries.
08/07/2014



You could write a scheduled listener that basically calls

new RepositoryStatus().gcBinaries(true);

(now called SQLRepositoryStatus in 5.9.5).

1 votes