Skip to content

Delete License

Deleting a License

You can delete a license by making a request to the following API endpoint:

DELETE https://api.ricardoneud.com/v2/reseller/{license_key}/delete

Request Headers:

HeaderTypeRequiredDescription
AuthorizationstringBearer token with a valid reseller API key

Example Request:

DELETE https://api.ricardoneud.com/v2/reseller/{license_key}/delete
Authorization: Bearer your-reseller-token

Example Response:

{
"message": "License deleted successfully"
}

Error Responses:

  • 401 Unauthorized: If the reseller token is invalid or does not match the license.
  • 404 Not Found: If the license does not exist.
  • 500 Internal Server Error: If a database error occurs during the deletion process.

Notes:

  • The reseller token must match the license’s reseller_id to allow deletion.
  • Ensure the provided license key corresponds to an existing license for deletion.