Are you moving out of a secondary residence and not moving into another residence in Germany? Then you must deregister for this apartment.