Delete all empty directories found with find
bash |copy code |?
1 find -depth -type d -empty -exec rmdir {} \;
Delete all empty directories found with find
bash |copy code |?
1 find -depth -type d -empty -exec rmdir {} \;
Find files and directories containning your search terms, and delete them witout confirmation and recursively. No matter if they are not empty.
bash |copy code |?
1 find . -name "search_terms" -exec rm -rf {} \;