> Why are you using find? Your directories are already named for > datestamps. Just have the cron job's shellscript calculate 7 days > ago (let's say 8/27/2016), then do rm -rf whatever/20160827. Like this.... lastweek=$(date -d "-7 days" +%y%m%d) or rm -rf whatever/$(date -d "-7 days" +%y%m%d) Alan