From the timeline, War and rebuilding
1941
The mines stop and people leave
The Norwegian and Soviet mines were put out of operation in the summer of 1941 and the population was evacuated, the Russians to Arkhangelsk and the Norwegians to Scotland. The Germans kept a small force in Longyearbyen until it was evacuated in July 1942.
History Store norske leksikon
Svalbard