Get all NPCs and delete them

Hey, I just need a short code that gets all NPCs ( in pairs thingy ) and removes them. That’s all :stuck_out_tongue:

[lua]for , npc in ipairs(ents.FindByClass("npc*")) do
npc:Remove()
end[/lua]

Thank you