added trash function

This was made largely superfluous with http://hasseg.org/trash/ but I
figured it might be useful to someone.