Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 03-31-2005, 02:17 PM   #1
Registered: Mar 2005
Location: Oklahoma City
Distribution: Fedora Core
Posts: 128

Rep: Reputation: 15
Can't figure out how to delete something from my trash can. Help please

I have some folders in my trash can that wont go away. I right clicked them to check permissions and it wont let me change anything. So I fired up a Konsole and switch to root then cd'd to the trash can.

I then typed in rm "folderName"

I recieved cant remove a directory.

How do I delete a directory or a folder with a bunch of stuff in it.

Old 03-31-2005, 02:20 PM   #2
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Be careful with this little command, especially if you are using it as root, but rm -rf <directory name> will remove a directory no matter what. Just remember never type in rm -rf / and hit the old enter'll regret it after the shock of what you did hits you.

Old 03-31-2005, 04:41 PM   #3
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Like the poster above me mentioned, use

rm -rf
-r means RECURSIVE which means it will go into each directory and ask you if want to delete files in the directory.

-f means FORCE which accepts 'yes' to everything.

Becareful how you use it! In the future, if you want to delete a file/folder directory without dragging it to the trash can, hold SHIFT+DEL and it will permanently delete the file/folder.
Old 03-31-2005, 04:44 PM   #4
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
There's an Empty Wastebin right click option in KDE...
Old 04-01-2005, 08:45 AM   #5
Registered: Mar 2005
Location: Oklahoma City
Distribution: Fedora Core
Posts: 128

Original Poster
Rep: Reputation: 15
that worked!

Thanks you


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete stuff from the trash? usernameddr Mandriva 4 01-23-2005 10:44 AM
Delete without moving to trash? Nigh Unstoppabl Linux - Newbie 1 11-15-2004 01:55 AM
Unable to delete trash entropyv Mandriva 1 09-26-2004 11:29 AM
delete from trash today53 Linux - Newbie 6 11-05-2003 10:32 AM
How to delete the trash bin? BajaNick Linux - Software 4 08-20-2003 12:37 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:51 PM.

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