LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2004, 09:38 PM   #1
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Rep: Reputation: 15
rmdir for non-empty folder


there are few folders that i have lying around that i want to delete.. but when using rm -d.. i have to say 'yes' to all of the files in order to delete them..

rmdir doesn't work as it tells me it's non-empty (YA! I KNOW THAT!)..

i looking at rmdir --help and there is a flag in there about ignoring the non-empty message.. but what is it? '--ignore-fail-on-non-empty' wasn't it..
 
Old 01-09-2004, 09:41 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
try this
rm -Rf directory-name

-R stands for recursive, f stands for force (i.e. won't ask any questiones). Use with caution though. Don't wanna erase stuff you need
 
Old 01-09-2004, 10:09 PM   #3
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Original Poster
Rep: Reputation: 15
thanks.. i suppose should have gone in the Newbie section.. all well.. question answered.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl does not want rmdir an empty directory keefaz Programming 6 05-05-2005 01:59 AM
Empty Folder ? wlaw Linux - Networking 1 09-07-2004 03:42 AM
Evolution will not empty trash folder azebuski Linux - Software 0 05-25-2004 11:40 AM
RMDIR - how to remove a non-empty directory?? jacksmash Linux - Newbie 15 11-23-2003 12:51 PM
How do I empty the /tmp folder at boot? Posty Slackware 13 10-12-2003 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration