Every now and again, I’ll find myself with some files sitting around in my trash that I can’t delete. This can be particularily problematic when I’ve got several gigs worth of stale ISOs sitting there giving me an error like: 'Error removing file: Permission denied'
The trash project allows you to interact with your desktop trashcan from the command line. It lets users "undo" deletions made with the trash command in a similar manner to restoring files from the trashcan in a desktop environment. For experienced Linux users, the trash command comes in handy when you want to put a file into the trashcan from the command line.
By default, Ubuntu does not show Computer,home,network and Trash icon on the desktop in Ubuntu. Instead Ubuntu shows the Trash icon on the extreme right of the bottom panel. Also having the Trash icon on the desktop in Ubuntu is a good option, because it becomes easier to drag - drop files onto the Trash icon.