That should take care of you. It will search for all files (type f) under /path/to/top/directory and delete the ones that end in .cif
Then the second will search for all directories named "Thumbnail_Images" and delete them. I don't know for certain if it works on directories with files in them, so you'll have to test it.