Remove only one specified directory recursively from a folder (Linux)

127 Views Asked by At

My question is pretty quick to explain, I don't know about the solution.

I have a folder always containing 3 folders that can themself contained others folder. I would like to be able to remove only a specific folder from all 3 firsts folders. Here how I picture the thing :

For example here I would like with a single command to remove all folder named Folder 1 under the User folder (if it's possible, if not using a shell script could do the trick)

> User_folder
     > Folder_A
         > Folder_1 --> To remove
         > Folder_2
         > Folder_3
         > Folder_4
     > Folder_B
         > Folder_1 --> To remove
         > Folder_5
         > Folder_6
         > Folder_7
     > Folder_C
         > Folder_1 --> To remove
         > Folder_2
         > Folder_4
         > Folder_5
0

There are 0 best solutions below