This will allow you to perform a dry run, delete echo
if you like the exit
find /path/to/toplevel -type d -mtime +7 -exec echo rm -rf {} +
Update
If you have an older version find
that does not comply with POSIX 2004, use instead:
find /path/to/toplevel -type d -mtime +7 -exec echo rm -rf {} \;
or
find /path/to/toplevel -type d -mtime +7 -print0 | xargs -0 echo rm -rf {}
\;
rm
, xargs
rm
, rm
, , . , +