View previous topic :: View next topic |
Author |
Message |
richard Ultimate Member

Joined: 13 Apr 2025 Posts: 2730 Location: Kent, United Kingdom
|
Posted: Fri Apr 11, 2025 7:42 pm Post subject: [SOLVED] Cannot delete 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?
[UPDATE]
I have tried to use a live cd to see if i could find the files but I cannot see them anywhere.
_________________ Windows Vista / Ubuntu 8.10
Last edited by richard on Fri Apr 11, 2025 10:36 pm; edited 2 times in total |
|
Back to top |
|
lberg Sr. Member

Joined: 28 Jul 2025 Posts: 1289
|
Posted: Fri Apr 11, 2025 8:51 pm Post subject: |
|
|
I'm assuming you can't remove them as a non-root user. Here's what I would do in a case like this:
Make a new folder on your desktop (of the user)
Move the folders/files in the trash out of the trash and into that folder (or ANYWHERE....it doesn't really matter where, the new folder is just for ease of the operation)
Get root permission (again, doesn't matter....CLI or GUI)
Delete the files/folders as root.....This is when having them contained in a folder helps.
_________________ 2 Computers: Arch Linux, 64-bit
3 Computers: Arch Linux, 32-bit
|
|
Back to top |
|
richard Ultimate Member

Joined: 13 Apr 2025 Posts: 2730 Location: Kent, United Kingdom
|
|
Back to top |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2433 Location: MD, USA
|
Posted: Fri Apr 11, 2025 10:11 pm Post subject: |
|
|
From what I understand, the wastebasket is supposed to simply link to ~/.Trash
Can you verify if this folder exists, and if so, can you become root, cd to that directory and 'rm -f <filenames>'?
_________________ Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
|
|
Back to top |
|
richard Ultimate Member

Joined: 13 Apr 2025 Posts: 2730 Location: Kent, United Kingdom
|
Posted: Fri Apr 11, 2025 10:29 pm Post subject: |
|
|
Well after a bit of digging around I found that the correct location for the trash folder contents is
Code: | ~./local/share/Trash/files |
The reason that they couldn't be deleted was that the files in question were read only. I was able to change the permissions and delete the files finally.
_________________ Windows Vista / Ubuntu 8.10
|
|
Back to top |
|
inactive Sr. Member
Joined: 29 Aug 2025 Posts: 1207
|
Posted: Sat Apr 12, 2025 1:51 pm Post subject: |
|
|
Right.
What I do is pull up a console, login to it as su, then type in "nautilus" or "konqueror", then change attribs/permissions and/or delete the files from there.
_________________ Mandriva 2025.1 PWP
Mandriva Cooker
ArtistX live
|
|
Back to top |
|
richard Ultimate Member

Joined: 13 Apr 2025 Posts: 2730 Location: Kent, United Kingdom
|
Posted: Sat Apr 12, 2025 3:24 pm Post subject: |
|
|
DedannaRocks! wrote: | Right.
What I do is pull up a console, login to it as su, then type in "nautilus" or "konqueror", then change attribs/permissions and/or delete the files from there. |
The problem was I had to find the files in the first place.
_________________ Windows Vista / Ubuntu 8.10
|
|
Back to top |
|
jester Sr. Member

Joined: 19 Apr 2025 Posts: 1166
|
Posted: Mon May 05, 2025 4:32 pm Post subject: |
|
|
I think you may also have some 'leftovers' in .local/share/Trash/info which you'd also need to do something like:
Code: | cd ~/.local/share/Trash/info
sudo rm -r filename.trashinfo |
This scenario is going to happen when you compile code in your /home directory somewhere, during which you need to su/sudo to root/privilege.
Once you're done and dusted with that experimentation (or the alpha/beta/non-'packaged' code you are following), you go ahead (under gnome - I can't speak for kde or others) and point-click delete under nautilus.
The file/directory is now in the Trash on the Desktop but can never be removed as a user.
Definitely a bug/shortcoming in nautilus/gnome (despite my advocacy...)
You avoid it by deleting this type of file/directory from the terminal as su/sudo ...
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
inactive Sr. Member
Joined: 29 Aug 2025 Posts: 1207
|
Posted: Tue Jun 03, 2025 6:22 am Post subject: |
|
|
richard wrote: | DedannaRocks! wrote: | Right.
What I do is pull up a console, login to it as su, then type in "nautilus" or "konqueror", then change attribs/permissions and/or delete the files from there. |
The problem was I had to find the files in the first place. |
Turn on "View hidden files and folders" in Nautilus/Konqueror?
That didn't work?
_________________ Mandriva 2025.1 PWP
Mandriva Cooker
ArtistX live
|
|
Back to top |
|
|