Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-09-2004, 10:38 PM   #1
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, 10:41 PM   #2
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, 11:09 PM   #3
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:59 AM
Empty Folder ? wlaw Linux - Networking 1 09-07-2004 04:42 AM
Evolution will not empty trash folder azebuski Linux - Software 0 05-25-2004 12:40 PM
RMDIR - how to remove a non-empty directory?? jacksmash Linux - Newbie 15 11-23-2003 01:51 PM
How do I empty the /tmp folder at boot? Posty Slackware 13 10-12-2003 09:36 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 AM.

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