Is it possible JUST to delete the log files in a directory by using logrotate w/o actually rotating them? We have an app that generates logs in the following format: app.log.DD_MM_YYYY. I am unsuccessful with logrotate having the following config:
/opt/log/app/app.log.* {
rotate 0
missingok
nomail
}
Can log rotate do this or should I just write a script and place it within cron?
Best, -Iulian