Removing Zombie Spawns on Maps

Im trying to work out how to remove spawn points for zombies etc on maps. Does anyone know a way how?

This is the closest i can think of. But i dont know what the spawn points are actually called

for k, v in ipairs( ents.FindByClass(???) ) do
v:Remove();
end;

npc_zombie npc_fastzombie npc_headcrab npc_headcrab_fast I do believe.
And hook it to InitPostEntity

Use pairs for this, not ipairs

For reference, one way to learn the class names of nearby items is using
[lua]
local entities = ents.FindInSphere(Entity(1):GetPos(), 250)
PrintTable(entities)
[/lua]

Assuming you are testing on a local server, you’ll be Entity(1), meaning this will print the class name of all nearby items.

Thanks for the help guys.