I\'m trying to do something which is probably very simple, I have a directory structure such as:
dir/ subdir1/ subdir2/ file1 file2
find dir -type f -exec rm {} \;
where dir is the top level of where you want to delete files from
Note that this will only delete regular files, not symlinks, not devices, etc. If you want to delete everything except directories, use
find dir -not -type d -exec rm {} \;