mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Removes `testenv` annotations and related code. These annotations originally let you skip x-pack snippet tests in the docs. However, that's no longer possible. Relates to #79309, #31619
49 lines
No EOL
1.2 KiB
Text
49 lines
No EOL
1.2 KiB
Text
[role="xpack"]
|
|
[[delete-license]]
|
|
=== Delete license API
|
|
++++
|
|
<titleabbrev>Delete license</titleabbrev>
|
|
++++
|
|
|
|
This API enables you to delete licensing information.
|
|
|
|
[discrete]
|
|
==== Request
|
|
|
|
`DELETE /_license`
|
|
|
|
[discrete]
|
|
==== Description
|
|
|
|
When your license expires, {xpack} operates in a degraded mode. For more
|
|
information, see
|
|
{kibana-ref}/managing-licenses.html#license-expiration[License expiration].
|
|
|
|
[[delete-license-api-prereqs]]
|
|
==== {api-prereq-title}
|
|
|
|
* If the {es} {security-features} are enabled, you must have the `manage`
|
|
<<privileges-list-cluster,cluster privilege>> to use this API.
|
|
|
|
* If the <<operator-privileges,{operator-feature}>> is enabled, only operator
|
|
users can use this API.
|
|
|
|
[discrete]
|
|
==== Examples
|
|
|
|
The following example queries the info API:
|
|
|
|
[source,console]
|
|
------------------------------------------------------------
|
|
DELETE /_license
|
|
------------------------------------------------------------
|
|
// TEST[skip:license testing issues]
|
|
|
|
When the license is successfully deleted, the API returns the following response:
|
|
[source,js]
|
|
------------------------------------------------------------
|
|
{
|
|
"acknowledged": true
|
|
}
|
|
------------------------------------------------------------
|
|
// NOTCONSOLE |