S
S
someserj2017-03-11 00:54:51
linux
someserj, 2017-03-11 00:54:51

How to delete folder in subfolders in terminal?

there is a root folder, it has a bunch of subfolders, and they still have a bunch of subfolders.
The task is to delete the folder named EVERYWHERE, which is located in the root, and in subfolders, and in sub-subfolders, and so on ...
rimraf **/**/myfolder
does not help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-03-11
@sim3x

find ./ -name "dir_name" -type d -delete

E
Eugene Khrustalev, 2017-03-11
@eugenehr

find /path/to/directory -type d -name 'myfolder' -delete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question