I need to use terminal a UNIX command to delete the contents of a directory, but need to do it recursively through a parent directory...
I have done this with a specific document in the past, using...
find [path] -name "[nameofdocument]" -delete
(find /Users -name "afpDelete*" -delete)... is specifically what I used
This time, however, I want to delete the contents of a directory.
Specifically, I want to go through the Users folder (/Users/) and find the Documents (/Users/[user]/Documents/] folder for each user and delete the contents of their documents folder.
Any ideas? Can't really find what I need in man pages. Oh, by the way, I am using bash.
Thanks in advance for any input!