LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Delete files from user recycle bin (https://www.linuxquestions.org/questions/linux-newbie-8/delete-files-from-user-recycle-bin-677248/)

7ser23 10-18-2008 12:14 AM

Delete files from user recycle bin
 
Hi I have some files in my recycle bin that I want to erase permanently.

I tried the following command

sudo rm -r ~/.local/share/Trash/files/*

and nothing,

If it helps, its the recycle bin for my normal user called Sergio, I tried to find the location of my recycle bin logged as a root and I'm not able to find it, please help.

Thanks

Ser

{BBI}Nexus{BBI} 10-18-2008 12:38 AM

Quote:

Originally Posted by 7ser23 (Post 3314187)
Hi I have some files in my recycle bin that I want to erase permanently.

I tried the following command

sudo rm -r ~/.local/share/Trash/files/*

and nothing,

If it helps, its the recycle bin for my normal user called Sergio, I tried to find the location of my recycle bin logged as a root and I'm not able to find it, please help.

Thanks

Ser

No need for sudo simply do while logged in as Sergio:
Code:

rm -rf ~/.local/share/Trash/files/*

7ser23 10-19-2008 05:53 PM

Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3314205)
No need for sudo simply do while logged in as Sergio:
Code:

rm -rf ~/.local/share/Trash/files/*

Thank you for your reply, I tried the code u gave me as sergio (normal user) and it says the following:

rm: cannot remove `/home/sergio/.local/share/Trash/files/ser/recycler/S-1-5-21-1482476501-1644491937-682003330-1013/isi32.exe': Permission denied

so it does not remove my recycle :(. I tried that same code as a root and no errors but the recycle is still full, please help

{BBI}Nexus{BBI} 10-19-2008 07:43 PM

Check the file permissions and ownership of the contents in that folder. Do:
Code:

ls -ls .local/share/Trash/files/ser/recycler/S-1-5-21-1482476501-1644491937-682003330-1013/
or simply copy and paste the above to your terminal/console.

7ser23 10-19-2008 09:14 PM

Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3315990)
Check the file permissions and ownership of the contents in that folder. Do:
Code:

ls -ls .local/share/Trash/files/ser/recycler/S-1-5-21-1482476501-1644491937-682003330-1013/
or simply copy and paste the above to your terminal/console.

Thank you once again, I used the code you gave me and this is what happens:

4 -rwxr-xr-x 1 sergio sergio 62 2008-10-07 11:37 Desktop.ini
24 -r-xr-xr-x 1 sergio sergio 21873 2008-04-23 12:34 isi32.exe
8 -r-xr-xr-x 1 sergio sergio 7200 2008-07-24 14:59 service.exe
36 -r-xr-xr-x 1 sergio sergio 35328 2008-08-05 16:30 win32.exe

mmm.... so I assume that it's just a list (for ls) hope this info can help you help me. Thanks


All times are GMT -5. The time now is 12:56 AM.