Deleting Trash can

Wander Boessenkool wander at tomaatnet.nl
Mon Dec 20 17:36:36 UTC 2004


On Mon, 2004-12-20 at 11:48 -0500, Jozsef Mak wrote:
> What is the command line level command for emptying the wastebasket?

rm -r ~/.Trash/*

change that to an rm -rf if you're feeling lucky, and you are sure you
don't make typos ;-)

but possibly you need to do a:

sudo chown -R yourusername /home/yourusername/.Trash/

first.

> 
> jozsefmak
> 
> >From: Brian Puccio <brian at brianpuccio.net>
> >To: ubuntu-users at lists.ubuntu.com
> >Subject: Re: Deleting Trash can
> >Date: Sun, 19 Dec 2004 22:52:33 -0500
> >
> >On Sun, 2004-12-19 at 21:19 -0500, Jozsef Mak wrote:
> > > Hi,
> > >
> > > I have hundreds of MB of old files  and folder in my Trash can and 
> >Ubuntu
> > > doesn't let me delete them because i have no permission. How can i 
> >delete
> > > these folders and files and how can i disable this permission feature
> > > because it drives me crazy.
> >
> >I had that issue once as well.  Not sure what created it.  Anyhow, as
> >root, go into the Trash folder and as root delete those files (I just
> >used sudo at a command prompt, though I guess you can always gksudo a
> >nautilus session and remove them that way.
> >
> >The permission feature is just part of the normal linux filesystem, you
> >can't delete files you don't have access to.  Again, I'm not sure what
> >caused it, but the hiccup only happened once to me.
> >
> >Maybe a "force empty" option when right-clicking the trash can that
> >prompts for the root password to take care of issues such as this?
> ><< signature.asc >>
> >--
> >ubuntu-users mailing list
> >ubuntu-users at lists.ubuntu.com
> >http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041220/89812b9a/attachment.sig>


More information about the ubuntu-users mailing list