You are not logged in.

#1 2008-04-11 21:31:00

Nocturnal_Deviant
Member
From: Kent, United Kingdom
Registered: 2008-04-09
Posts: 17

[SOLVED] Deleting files from Wastebasket

I have been doing some sorting out of files today and went to empty the Wastebasket only to find that 2 Folders and some of their contents were not deleted. When I tried to this from in the Wastebasket I keep getting a message saying I do not have permission to delete the files. Is there a way I can delete these files?

Last edited by Nocturnal_Deviant (2008-04-11 22:58:18)

Offline

#2 2008-04-11 21:40:11

SpookyET
Member
Registered: 2008-01-27
Posts: 410

Re: [SOLVED] Deleting files from Wastebasket

cd ~/.Trash; sudo rm -rfv *

Offline

#3 2008-04-11 22:07:41

Nocturnal_Deviant
Member
From: Kent, United Kingdom
Registered: 2008-04-09
Posts: 17

Re: [SOLVED] Deleting files from Wastebasket

I tried that and got the following message:

[richard@richard-laptop ~]$ cd ~/.Trash; sudo rm -rfv *
bash: cd: /home/richard/.Trash: No such file or directory
bash: sudo: command not found
[richard@richard-laptop ~]$

Offline

#4 2008-04-11 22:29:50

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Deleting files from Wastebasket

You are lucky you haven't got sudo, or your whole current directory would have been recursively deleted.. If you seperate commands with ";" the second will be run even if the first fails, you should use "&&" instead. You should also look at commands before executing them..

For your problem, where is your wastebasket located? Which DE do you use? Try deleting the directories as root.

Last edited by Ramses de Norre (2008-04-11 22:30:29)

Offline

#5 2008-04-11 22:33:33

Nocturnal_Deviant
Member
From: Kent, United Kingdom
Registered: 2008-04-09
Posts: 17

Re: [SOLVED] Deleting files from Wastebasket

I am running Gnome 2.22 and I have looked for the location of the Wastebasket and couldn't find it.  I realised that I should have looked at the commands first and it won't happen again.

Offline

#6 2008-04-11 22:35:42

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Deleting files from Wastebasket

That would be "~/.local/share/Trash/files/", delete the files you can't remove from their as root.

Offline

#7 2008-04-11 22:57:42

Nocturnal_Deviant
Member
From: Kent, United Kingdom
Registered: 2008-04-09
Posts: 17

Re: [SOLVED] Deleting files from Wastebasket

Thanks for that. Problem solved.

Offline

Board footer

Powered by FluxBB