This picture shows the German embassy in Stockholm very near the end of World War II (with the flag lowered to mark Hitler's death).
Germany surrendered on the 8th May 1945. The Flensburg government was dissolved and its members arrested on 23rd May. The Allies formally assumed complete control of Germany on 5th June and arguably the German state ceased to exist.
The embassies in neutral countries must have been one of the few elements of the Nazi state beyond the reach of the victorious allies and untouched by the damage, destruction and civil breakdown occurring in most of Germany. There must have been German officials comfortably resident in neutral capitals and working up to and beyond 8th May. Possibly they tried to continue conducting embassy business up to and beyond 5th June.
At what point were German embassies in neutral countries shut down, if indeed they were? What became of staff, both German and local? Did they continue to draw salaries and who paid them? At what point was an embassy's Nazi paraphernalia disposed of? Who owned the physical buildings after 5th June - was it the four Allies? Or did the Irish, Swedish and other governments quietly seize them?