This console command kills all non-essential NPCs within the cell your character is currently standing in.
killall
KillAll
Executing the above command would kill all non-essential NPCs nearby to your character.
KillAllActors
KillAllActors is the same command as KillAll - it is simply an alias (longer version).