how to delete files older than 2 days in linux code example
Example: linux delete files older than specific date
find /path ! -newermt "YYYY-MM-DD HH:MM:SS" | xargs rm -rf
find /path ! -newermt "YYYY-MM-DD HH:MM:SS" | xargs rm -rf