Question : Massive Find and Delete of a Folder

Hello all,

I have several joomla web sites on a server that use a component that contains a folder that needs to be deleted.  The folder I need to delete is called bad-behavior

The web directories are contained in /home/www

I need to write a bash script or equivalent that will go down the home/www tree look for any folder named bad-behavior and delete it and its contents.

This folder is found in the follow directory structure:

/home/www/www.somewebsite.com/web/mambots/system/bad-behavior.

I am not a Bash programmer, so any help with this would be greatly appreciated.

Answer : Massive Find and Delete of a Folder

What version of Linux? Try this one...
find /home/www -type d -name bad-behavior -exec  rm  -fr  {}  \;
Random Solutions  
 
programming4us programming4us