Linux Delete Folder Recursively

by Vivek Gite on December 15, 2008 · 0 comments

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

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 8 + 11 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: