On 30 April 1945, after the death of Adolf Hitler and in accordance with Hitler's last will and testament, Dönitz was named Hitler's successor as head of state, with the title of President of Germany and Supreme Commander of the Armed Forces. On 7 May 1945, he ordered Alfred Jodl, Chief of Operations Staff of the "Oberkommando der Wehrmacht" (OKW), to sign the German instruments of surrender in Reims, France. Dönitz remained as head of the Flensburg Government, as it became known, until it was dissolved by the Allied powers on 23 May.