Comments on: How to Search and Remove Directories Recursively on Linux https://www.tecmint.com/find-remove-directory-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 05:19:38 +0000 hourly 1 By: Nirmal https://www.tecmint.com/find-remove-directory-in-linux/comment-page-1/#comment-1760931 Sun, 10 Apr 2022 11:13:51 +0000 https://www.tecmint.com/?p=26992#comment-1760931 Hi,

The below code deletes all the directories that starts with/contains the name “files_2008” or it deletes only one directory which matches the name “files_2008“.

$ $find ~/Downloads/software -name "files_2008" -type d -exec /bin/rm -rf {} +

]]>