How to clear hostile mob drops only [duplicate]
You can make mobs drop no drops when getting killed by doing:
/gamerule doMobLoot false
That way mobs don't drop anything when getting killed but your players can't get any mobdrops either. Hopefully this is what you want.