Results 1 to 9 of 9

Thread: Unable to delete Trash files or folders

  1. #1

    Default Unable to delete Trash files or folders

    I had some folders and files in Trash when i upgraded from 11.4 to 12.2. When I attempt to delete folders or files from Trash I get the message:

    "Access denied to Trash:8029-MyTrashFileOrFolder"

    Why would I not be able to delete a file or file in Trash when I am the owner of that file or folder ?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,372
    Blog Entries
    1

    Default Re: Unable to delete Trash files or folders

    Delete them from a terminal with root privileges. They're stored in the ~/.local/share/Trash/files/ directory.
    Code:
    sudo rm -f ~/.local/share/Trash/files/*
    Last edited by deano_ferrari; 19-Oct-2012 at 20:20.

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Unable to delete Trash files or folders

    On 2012-10-20 04:56, eldiener wrote:

    > Why would I not be able to delete a file or file in Trash when I am the
    > owner of that file or folder ?


    Same UID?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  4. #4

    Default Re: Unable to delete Trash files or folders

    Quote Originally Posted by robin_listas View Post
    On 2012-10-20 04:56, eldiener wrote:

    > Why would I not be able to delete a file or file in Trash when I am the
    > owner of that file or folder ?


    Same UID?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)
    Yes. The UID was not changed by the upgrade. I will follow the suggestion to delete the files from Trash as root.

  5. #5

    Default Re: Unable to delete Trash files or folders

    Quote Originally Posted by deano_ferrari View Post
    Delete them from a terminal with root privileges. They're stored in the ~/.local/share/Trash/files/ directory.
    Code:
    sudo rm -f ~/.local/share/Trash/files/*
    When I go to the ~/.local/share/Trash/files for my home directory, as root, and type ls -l, there are no files there.

  6. #6
    dd NNTP User

    Default Re: Unable to delete Trash files or folders

    On 10/20/2012 06:16 PM, eldiener wrote:
    > When I go to the ~/.local/share/Trash/files for my home directory, as
    > root, and type ls -l, there are no files there.


    then root's trash is empty..

    that is, when as root you go to ~/.local/share/Trash/files/ you will be
    looking in root's home (~/) and at root's trash..

    but, what do you see if (as root) you do:

    Code:
    ls - l /home/[yourID]/.local/share/Trash/files/
    --
    dd

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,372
    Blog Entries
    1

    Default Re: Unable to delete Trash files or folders

    If you opened a terminal in your user session, then did
    Code:
    cd ~/.local/share/Trash/files/
    Code:
    ls -l
    If some/all of the files can't be deleted (because you're not the owner), you can remove as instructed before.

  8. #8

    Default Re: Unable to delete Trash files or folders

    Quote Originally Posted by dd View Post
    On 10/20/2012 06:16 PM, eldiener wrote:
    > When I go to the ~/.local/share/Trash/files for my home directory, as
    > root, and type ls -l, there are no files there.


    then root's trash is empty..

    that is, when as root you go to ~/.local/share/Trash/files/ you will be
    looking in root's home (~/) and at root's trash..

    but, what do you see if (as root) you do:

    Code:
    ls - l /home/[yourID]/.local/share/Trash/files/
    --
    dd
    The files directory is empty. Whether I try ls -l as root or as my own signon, there are no files in the directory.

    Yet when I opne Dolphin and click on the Trash folder in the Places view, Trash shows two entire directory structures which i had previously deleted.

  9. #9

    Default Re: Unable to delete Trash files or folders

    Quote Originally Posted by dd View Post
    On 10/20/2012 06:16 PM, eldiener wrote:
    > When I go to the ~/.local/share/Trash/files for my home directory, as
    > root, and type ls -l, there are no files there.


    then root's trash is empty..

    that is, when as root you go to ~/.local/share/Trash/files/ you will be
    looking in root's home (~/) and at root's trash..

    but, what do you see if (as root) you do:

    Code:
    ls - l /home/[yourID]/.local/share/Trash/files/
    --
    dd
    I did a 'find' for the directories showing in Trash, found them in my file system, and deleted them as root.

Posting Permissions

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