

You could also have a script that's run with the OnDeath trigger that fires the deletion once the NPC is unloaded.

There are many ways to do it, you could have an alias that fills itself with all the NPCs in the current cell or location and then run "delete" on them. Now this is for Skyrim but a lot of behaviour (unintended included) is the same for Fallout 4 and assuming so it's possible to achieve what you intended. Please use code similar to this to prevent respawn destruction. It will destroy spawn points as you will not delete the spawned actor, but the leveled instance marker. Please waive from using it on respwning/leveled actors. Stumbled on this regarding the delete command digging around the creationkit wiki the other dayĭelete is valid for unique actors only.
