cd /targetdir/targetsubdir rm -fr * #### > cd $TARGETDIR && rm -fr ./targetsubdir or > test -d $TARGETDIR && find . -name 'DATE_*' -type f -mtime +14 -exec rm -fr {} \;