If you move out of an apartment and do not move into another apartment in Germany, you must deregister.