Pretty basic idea, the enchantment is like the flipside to looting, where upon killing a mob they do not drop any items (xp is still dropped)
While this works perfectly fine as a punishment, it also has the potential to be useful. One use case I could think of is that it could be useful in certain mob/xp farms (particularly enderman xp farms) that drop an obscene amount of items that clog up your inventory.
At first I wasn’t sure if it should work on players, because on one hand it seems very punishing and mean to have all your items deleted after someone kills you, but on the other hand if someone really wanted to delete your items they could easily do it with flint and steel or lava. So I don’t think it would be a big problem.
Anyway, let me know what you think