The despawnManager native AI script function despawns an NPC manager.
()despawnManager(managerName: s)
()despawnManager("NPC Manager");
This example code despawns all the NPCs in the NPC manager called "NPC Manager".