Moving to a new server on the same domain? You do not need to do anything — copy the files and the database and the license keeps working.
Moving to a different domain, or retiring the site? Open Admin › License and click Deactivate license. This releases the activation on our server so the code can be used again straight away. You can also do it from your client area with Reset installation.