Kündigung is what it is called ( giving notice ):
<Name>
<Address> <Date> Kündigung
Sehr geehrte Damen und Herren,
In Bezug auf unseren Vertrag möchte ich hiermit meine Kündigung einreichen. Ich werde am Ende
<month> <year> aus der oben genannten Wohnung ausziehen.
Ich bitte um eine schriftliche Bestätigung des Erhaltens dieses Schreibens.
Mit freundlichen Grüssen,
<signature> <Name>,
<place>
Which basically means;
In accordance with our contact I hereby submit my notice of leaving. I will leave the above address at the end of
<month> <year>.
I request a written notification of this letter.
You need post it registered. To do this you write
EINSCHREIBEN written in block letters on the top of the envelope as otherwise your landlord could very well argue they have never received your notice letter.
Source:
Letter to landlord giving notice of leaving? Any examples