/gamerule DoMobSpawning false does not help
Upon using
/gamerule DoMobSpawning false
and adding the command /kill @e[type=!minecraft:player] I am shocked that now Mobs keep loading in... And the worst that I can kill each single one individualy with /kill @e[] but not them all together, better prevent any from loading in...