Site icon Experiences Unlimited

Shell script for clearing the Trash

I was facing a problem while clearing the Trash in Ubuntu. I wasn’t able to delete certaion folder and i got the message stating “Access Denied”. So i was wondering that there should be some way to do it from the command prompt using sudo and some command. I did a google for the requirement and found the following shell snippet:

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

Source: Ubuntu Forum.

Exit mobile version