adapt example to last commit.
update delete functions to check trashed flag before deleting. if true: remove it, else: update its flag.