If your customer needs to transfer a license from one computer to another, there are several possible ways of performing the transfer.
There are two steps required to deactivate a license:
1. Release/Deactivate the key from the server
2. Delete the key from the local system
1. Release a Key from the Server
There are 4 ways you can release a key from the server.
a. From the QLM Management Console
To clear the key using the QLM Management Console, go to the "Manage Keys" tab, locate the key and click the "Deactivate" button.
b. From the QlmLicense.ReleaseLicense API.
To clear the key using the API, make sure that before calling the ReleaseLicense API, you set the QlmLicense.CommunicationEncryptionKey property.
c. From the QlmCustomerSite deactivation web page.
The QlmCustomerSite is a web site that contains a collection of useful web pages that you can expose to your customers. The QlmReleaseLicense.aspx web page is a self-serve page that allows your customers to deactivate their license.
For more details, refer to this article.
d. From the QLM License Wizard
If you are using the QLM License Wizard, you can enable the QlmShowDeactivationProperty to allow users to deactivate a license from within the QLM License Wizard.
2. Delete the keys from the local system
To delete keys from the local system, you must call the QlmLicense.DeleteKeys or QlmLicense.DeleteKeysEx API. Make sure you call DefineProduct before calling DeleteKeys. It is recommended that the application calling DeleteKeys runs with elevated privileges.
Even if you do not explicitly call DeleteKeys, when you enable the ValidateOnServer property, DeleteKeys will be automatically triggered if the call to ValidateLicenseOnServer detects that the license was revoked on the server or that the license is not registered on the server. Note that these operations require an internet connection to communicate with the QLM License Server.