Linux Delete Folder Recursively

by on December 15, 2008 · 0 comments· LAST UPDATED December 15, 2009

in

How do I delete folder recursively under Linux operating systems?

The rm command remove files or directories recursively and syntax is as follows:

 
rm -r dirName
rm -r folderName
rm -rf folderName

In this example, recursively delete data folder:

 
rm -rf /home/vivek/data


If you would like to be kept up to date with our posts, you can follow us on Twitter, Facebook, Google+, or even by subscribing to our RSS Feed.


{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: