Important Note: This is not recommended as once the logs are deleted, they are not recoverable
The option to delete alerts.log data was removed from the UI due to incidents where data was deleted in error. As there is no backup for these logs, there is no way to recover the data once it is removed. The recommended way to improve storage would be to roll these older alerts over to a cold storage option.
If you would still like to have these logs deleted after a certain amount of time, you can follow the steps below:
1. vim into /var/awp/etc/config
2. Change PURGE_LOGS="no" to PURGE_LOGS="90" or whatever per day time frame that meets your company needs.
3. Once the file has been saved with the changes run awp -s -f to apply the changes