By default, cPFence keeps quarantined files and logs for 60 days before they are automatically cleared. You can adjust this behavior by changing the QUARANTINE_DAYS value in settings.
Changing Quarantine Retention Period
There are two ways to update how many days quarantined files and logs are kept:
- Using the WebUI: Go to
WebUI > System Settings > Adjust cPFence Settingsand change theQUARANTINE_DAYSvalue. - Using the CLI: Open the configuration file with the following command:
nano /opt/cpfence/config.conf
Then modify the line:
QUARANTINE_DAYS="60"
Change the number to your preferred retention period in days, then save and exit.
Tip: Lowering the number helps free disk space faster, while increasing it allows you to keep quarantined files longer for review.
