how i can remove all of one item from my game

i want to remove all spawners that are placed and also in inventories. How can i?
I thought onspawnmobevent if it is caused by spawner i remove that spawner. but how can i clear the spawners my players has in inventories?
Was this page helpful?