LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recursive Delete DIR and Sub Dir with CONTENTS (https://www.linuxquestions.org/questions/linux-newbie-8/recursive-delete-dir-and-sub-dir-with-contents-553870/)

jCash 05-14-2007 04:45 PM

Recursive Delete DIR and Sub Dir with CONTENTS
 
I want to know a simple command to delete folders and subfolders with contents?

I am trying to do this: (I don't want to descend into every single directory.)

[root@localhost local]# rm -r gcc-3.4.4
rm: descend into directory `gcc-3.4.4'?

homey 05-14-2007 05:54 PM

Do you mean that you don't want prompts?
If so, you could use force.
For example: rm -rf /some/folder


All times are GMT -5. The time now is 02:49 AM.