delete folder in linux

what is the command to delete folder that have many file inside inlinux with out confirmation to delete each file
teeraAsked:
Who is Participating?
 
fridomCEO/ProgrammerCommented:
rm -f is not sufficient you have to use
rm -rf path/to/dir

Regards
Friedrich
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Should be:

rm -f /path/to/folder

Be careful - the easiest way to screw up your system is to use rm -f /

reference:
http://www.die.net/doc/linux/man/man1/rm.1.html
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
-f = force delete - no prompting
-r = recursive - I forgot to do that in my example; the link I provided explains this in detail though.

And for reference, you can always type

man rm

on a command line to get the manual pages for rm.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
ram_einsteinCommented:
rm -rf <foldername>

man rm for more.
0
 
kenfcampCommented:
you dont need the 'f'

rm -R /some/folder/location will work just fine
0
 
kenfcampCommented:
eugh, then again if I had read the question, I wouldnt' have made the statement about not needing 'f'
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.