Эрик Померанский
It was replaced in 1417 by the Copenhagen Castle built by the then bishop, but taken over by the king, Eric of Pomerania.