When you move out of your home, you are obliged to deregister with the relevant registration authority (municipality or city) within two weeks, unless you move into a new home in Germany.