This command will kill all non-essential NPCs within your proximity (the cells of the map that are currently loaded). Note that essential NPCs and companions will not be killed when using this command.
killall
killall
After executing the above command, all non-essential NPCs inside map cells that are currently loaded will be killed.