Results 1 to 10 of 10

Thread: Undeletable files in Trash?

  1. #1
    Join Date
    Sep 2006
    Beans
    175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Undeletable files in Trash?

    I have a folder in my Trash, synce-gnome-0.11, that I can't delete. When I click on Empty trash I get a permission denied error, and when I look at the file permissions I see that it's owned by root. How can I delete this folder? I tried searching the file system for the folder, but I can't figure out where the trash is stored, and hence I can't chown it to my username. I also tried running nautilus as root using "gksudo nautilus," but after doing that nautilus hangs if I try to click on the trash can.

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Undeletable files in Trash?

    Quote Originally Posted by raccoonone View Post
    I have a folder in my Trash, synce-gnome-0.11, that I can't delete. When I click on Empty trash I get a permission denied error, and when I look at the file permissions I see that it's owned by root. How can I delete this folder? I tried searching the file system for the folder, but I can't figure out where the trash is stored, and hence I can't chown it to my username. I also tried running nautilus as root using "gksudo nautilus," but after doing that nautilus hangs if I try to click on the trash can.
    Try this using your terminal:

    For User Trash:

    Code:
    sudo rm -rf /home/your_username/.local/share/Trash
    or

    For Root Trash:

    Code:
    sudo rm -rf ~/.local/share/Trash/files/*
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #3
    Join Date
    May 2008
    Location
    India
    Beans
    194
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Undeletable files in Trash?

    you can try he following command:
    Code:
    sudo rm /home/<user name>/.local/share/Trash/files/<filename>

  4. #4
    Join Date
    Sep 2006
    Beans
    175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Undeletable files in Trash?

    Thanks! That's fixed it.

  5. #5
    Join Date
    Apr 2009
    Beans
    1
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Thumbs down Re: Undeletable files in Trash?

    EXCELLENT.... that worked like a charm--- UBUNTU 8.10 & 9.04

  6. #6
    Join Date
    Nov 2006
    Location
    expat
    Beans
    25
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Undeletable files in Trash?

    [quote=iaculallad;5271577]Try this using your terminal:
    For User:
    Code:
    sudo rm -rf /home/your_username/.local/share/Trash
    or

    I tried several other tips elsewhere first, but your little bit of command line nailed my trash can problem in a flash. 50 Megs of junk are gone for the first time in 3 weeks. Awesome.
    linux user #482109 | system76 gazelle laptop 2007

  7. #7
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Undeletable files in Trash?

    [quote=Nkosi;7721359]
    Quote Originally Posted by iaculallad View Post
    Try this using your terminal:
    For User:
    Code:
    sudo rm -rf /home/your_username/.local/share/Trash
    or

    I tried several other tips elsewhere first, but your little bit of command line nailed my trash can problem in a flash. 50 Megs of junk are gone for the first time in 3 weeks. Awesome.
    Are you sure that file and info folders will be regenerated ?

  8. #8
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Undeletable files in Trash?

    they should figure out something about this whole permissions and trash thing. few days ago I've noticed my Trash directory is 20gb eventhough it's empty, turns out, all the files with messed up permissions stays in ".local/share/Trash/expunged" ...

  9. #9
    Join Date
    Jan 2006
    Beans
    1,237
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Undeletable files in Trash?

    [QUOTE=credobyte;7721433]
    Quote Originally Posted by Nkosi View Post

    Are you sure that file and info folders will be regenerated ?
    yes, they are instantly regenerated.

  10. #10
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Undeletable files in Trash?

    [quote=cb951303;7721614]
    Quote Originally Posted by credobyte View Post

    yes, they are instantly regenerated.
    Ok, thnx ( haven't really dealt with these directories .. always using Nautilus )

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •