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.