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