# How to clear license keys from an end user system

If your customer needs to transfer a license from one computer to another, there are several possible ways of performing the transfer.&#x20;

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

### **Release a Key from the Server**

There are several ways you can release a key from the server.

#### &#x20;**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.

#### **From the QlmLicense.ReleaseLicense API.**&#x20;

To clear the key using the API, make sure that before calling the ReleaseLicense API, you set the QlmLicense.CommunicationEncryptionKey property.

#### **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](/docs/self-help-customer-site/qlmcustomersite-qlm-self-help.md).

#### **From the QLM License Wizard deactivate button.**

If you are using the QLM License Wizard, the Deactivate button connects to the License Server and deactivates the license.

### **Delete the keys from the local system**

There are several ways to delete a key from the local system.

#### **From the QLM License Wizard deactivate button.**

If you are using the QLM License Wizard, the Deactivate button deletes the license keys stored on the end-user system.

#### **From the QlmLicense.DeleteKeysEx API.**&#x20;

To delete keys from the local system, you can call the [QlmLicense.DeleteKeys](/docs/api-reference/.net-api/qlmlicense/client-side-methods/deletekeys.md) or [QlmLicense.DeleteKeysEx](/docs/api-reference/.net-api/qlmlicense/client-side-methods/deletekeysex.md) 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.

### **Delete the keys from your test system**

If you are trying to delete license keys from a test system, you could use the following tool: [Tool to delete registered license keys on a system](/docs/how-to/tool-to-delete-registered-license-keys-on-a-system.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/how-to/how-to-clear-license-keys-from-an-end-user-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
