View Full Version : [ubuntu] where is 'wastebasket' - and it won't empty !!

August 28th, 2008, 11:56 AM

in my wastebasket i have 2 folders that won't delete

if i try to do so i get a permissions error from nautilus

there is no .Trash folder in my or root's home directory !

where is 'wastebasket' located in the filesystem hierarchy and has anyone any tips for nuking these folders

(rm -rf ~/.Trash* don't work as i haven't got one !)



August 28th, 2008, 12:04 PM
It appears that it is possible to have more than one trash. Those folders might also have different permissions on them.

This thread seems to have some helpful info (especially the "find" command):

You might want to try:
$ cd ~/.Trash
$ ls -la

>> who are the files owned by and what are the permits. If they are owned by root, you could...

$ sudo rm -f [name of file here]
$ sudo rm -rf [name of dir here]

Note: I am a fan of individually deleting things. You could remove everything in the trash all at once with a sudo rm command, but that's a little too risky for my liking.

August 28th, 2008, 12:07 PM
Your trash is in ~/.local/share/Trash/files if you're using 8.04.

August 28th, 2008, 09:52 PM
i am indeed 8.04 and when i ran rm -rf from the cli in ~/.local/share/.Trash/Files the stubborn little blighters vanish !!

ta da !


September 1st, 2008, 11:59 AM
I notice that there's also some files in the ~/.local/share/Trash/info directory. Is it OK to delete these ?

September 1st, 2008, 12:33 PM

Under the "Trash" directory, the "files" directory contains the files that were deleted. The "info" directory contains files that specify the deletion date and the path where the file came from. You can view the files in a text editor, "more" or "cat" them if you are curious.