Delete License
Deletes a license by its serial number. All activations belonging to that license are deleted along with it, so any device currently using the license stops validating.
DELETE https://api.keyzy.io/v2/licenses/destroy-serial
Requires a write API key. Never embed a write key in a distributable application — anyone who extracts it could delete your licenses. Call this endpoint from your backend, store, or automation tooling only.
If you only want to free up a seat, delete the activation instead and leave the license in place.
Parameters
| Parameter | Type | Description |
|---|---|---|
| app_id | string | An app_id that has write permission |
| api_key | string | An api_key that has write permission |
| serial | string | The serial number of the license to delete |
| type | string | The type of the license: perpetual, subscription or trial |
The type you send must match the actual type of the license. This is a safety check: if they do not match, nothing is deleted and the request fails. It protects you from deleting the wrong record when a serial number is passed in from an external system such as a store or a CRM.
Returns
Keyzy responds with a message confirming the deletion if the request is correct.
{
"message": "License successfully deleted."
}
Errors
You are not authorized — the app_id / api_key pair is wrong, or the key does not have write permission.
{
"error": {
"message": "You are not authorized!",
"status_code": 401
}
}
License does not exist — no license with that serial number belongs to your account.
{
"error": {
"message": "License does not exist!",
"status_code": 404
}
}
License type mismatch — the license exists, but its type is not the type you sent. Nothing is deleted.
{
"error": {
"message": "License type mismatch!",
"status_code": 422
}
}
Notes
- The license is deleted together with its activations in a single call. You do not need to remove the activations first.
- If you are using the Zapier integration, the Delete Perpetual and Delete Subscription actions call this endpoint for you.