2018-03-07 01:47:04 +08:00
|
|
|
[role="xpack"]
|
2018-06-20 23:17:11 +08:00
|
|
|
[testenv="basic"]
|
2018-03-07 01:47:04 +08:00
|
|
|
[[delete-license]]
|
2018-12-21 02:23:28 +08:00
|
|
|
=== Delete license API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Delete license</titleabbrev>
|
|
|
|
++++
|
2018-03-07 01:47:04 +08:00
|
|
|
|
|
|
|
This API enables you to delete licensing information.
|
|
|
|
|
2020-07-23 23:48:22 +08:00
|
|
|
[discrete]
|
2018-03-07 01:47:04 +08:00
|
|
|
==== Request
|
|
|
|
|
2018-11-28 21:24:35 +08:00
|
|
|
`DELETE /_license`
|
2018-03-07 01:47:04 +08:00
|
|
|
|
2020-07-23 23:48:22 +08:00
|
|
|
[discrete]
|
2018-03-07 01:47:04 +08:00
|
|
|
==== Description
|
|
|
|
|
2021-03-31 21:57:47 +08:00
|
|
|
When your license expires, {xpack} operates in a degraded mode. For more
|
2020-01-10 03:26:34 +08:00
|
|
|
information, see
|
|
|
|
{kibana-ref}/managing-licenses.html#license-expiration[License expiration].
|
2018-03-07 01:47:04 +08:00
|
|
|
|
2021-03-15 21:20:09 +08:00
|
|
|
[[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.
|
2018-03-07 01:47:04 +08:00
|
|
|
|
2021-03-15 21:20:09 +08:00
|
|
|
* If the <<operator-privileges,{operator-feature}>> is enabled, only operator
|
|
|
|
users can use this API.
|
2018-03-07 01:47:04 +08:00
|
|
|
|
2020-07-23 23:48:22 +08:00
|
|
|
[discrete]
|
2018-03-07 01:47:04 +08:00
|
|
|
==== Examples
|
|
|
|
|
|
|
|
The following example queries the info API:
|
|
|
|
|
2019-09-06 22:55:16 +08:00
|
|
|
[source,console]
|
2018-03-07 01:47:04 +08:00
|
|
|
------------------------------------------------------------
|
2018-11-28 21:24:35 +08:00
|
|
|
DELETE /_license
|
2018-03-07 01:47:04 +08:00
|
|
|
------------------------------------------------------------
|
|
|
|
// TEST[skip:license testing issues]
|
|
|
|
|
|
|
|
When the license is successfully deleted, the API returns the following response:
|
|
|
|
[source,js]
|
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
2018-06-20 23:17:11 +08:00
|
|
|
// NOTCONSOLE
|