I want to find all directories that contain a certain file and then delete those directories. With
find . -name thatcertainfile -execdir pwd \;
I get a list of all the directories I want to delete, but how could I delete all those directories on the fly? Note, that I want to delete the whole directory and not just the file itself, where I could use
find . -name thatcertainfile -exec rm -r {} \;