Open this page (login required)
From Territories, go to Distribution, then Check In.
Pick the territory (and confirm the publisher, if asked) that's being handed back in.
The territory becomes available again for future assignment, and this check-in is recorded in its history.
Territories > Distribution > Check In
History (history.php) shows the full check-out/check-in record per territory