When you leave Germany, you must deregister your address. This is called the Abmeldung. You must fill this form, and send it to the Bürgeramt. You can deliver it in person, by email, or by registered mail.

The original form is here.

For more information, see How to do your Abmeldung in Berlin.