I have a data directory on a Debian box containing multiple sub-directories, when the system has processed the contents of a sub-directory it adds a sub-directory ".processed" into it.
Unfortunately when the data is deleted the ".processed" directories are left behind and i have to delete them by hand, in among the directories still containing data.
Is there any way to delete only sub-directories that contain just a directory ".processed" and no other files or directories?