delete directories recursively on Mac terminal

I want to delete directories recursively on Mac terminal; directories are named ".picasaoriginals". I tried rm -r .picasaoriginals , but it does not do it.

What is the correct command?


Here is the command that worked:

find . -iname '.picasaoriginals' -exec rm -rf '{}' \;

From this link,

find . -type d -name .picasaoriginals -exec rmdir {} \;

To delete the files within the directories as well, use the -delete flag instead of -exec rmdir {} \;