[Sorry for filing this in the wrong product, but there seems to be no xdg-utils component.]
Most of the time I'm doing my file management in the shell, where `rm' means dead and gone forever. I'd love to see a command line tool facilitating the freedesktop.org trash bin. I would imagine it to work like this:
# Move baz.txt to the trash bin
$ xdg-trash /foo/bar/baz.txt
# Move the whole bar directory to the trash bin
$ xdg-trash /baz/bar/
# List the trash bin's contents (lists the original locations)
$ xdg-trash --list
# Restore the bar directory
$ xdg-trash --restore 2
# Empty the trash bin
$ xdg-trash --empty
The product for xdg-utils is Portland, moving there.
That's interesting, I will try to work on it in the next days.
At the moment it exists trash-cli for this purpose. You can find it here: http://www.andreafrancia.it/trash/
fd.o spec: http://www.freedesktop.org/wiki/Specifications/trash-spec