difference between this and a cactus/lava is the fact that you place items in via an inventory, and it only deletes the items once you press a button in the inventory to delete them.

i am not a big fan of those shotgun trash cans which obliterate any item that just so happens to cross paths with them. adding a confimation button would provide a safer alternative.

e.g. villager trashcan could hold items in mouth, confirm to start chewing. chewing is 5 seconds and can be interupted at any time to save the items. swallows after 5 seconds and the inventory clears
Minecraft needs a Trash Can of some kind