Delete license API
This API enables you to delete licensing information.
Request
DELETE /_license
Description
When your license expires, X-Pack operates in a degraded mode. For more information, see License expiration.
Prerequisites
- If the Elasticsearch security features are enabled, you must have the
managecluster privilege to use this API. - If the operator privileges feature is enabled, only operator users can use this API.
Examples
The following example queries the info API:
resp = client.license.delete() print(resp)
response = client.license.delete puts response
const response = await client.license.delete(); console.log(response);
DELETE /_license
When the license is successfully deleted, the API returns the following response:
{
"acknowledged": true
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-license.html