How to kill all items of an item

Like how to kill all items, that are snowballs. (1.21.10)

Continue to help post