delete-license.asciidoc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [role="xpack"]
  2. [[delete-license]]
  3. === Delete license API
  4. ++++
  5. <titleabbrev>Delete license</titleabbrev>
  6. ++++
  7. This API enables you to delete licensing information.
  8. [discrete]
  9. ==== Request
  10. `DELETE /_license`
  11. [discrete]
  12. ==== Description
  13. When your license expires, {xpack} operates in a degraded mode. For more
  14. information, see
  15. {kibana-ref}/managing-licenses.html#license-expiration[License expiration].
  16. [[delete-license-api-prereqs]]
  17. ==== {api-prereq-title}
  18. * If the {es} {security-features} are enabled, you must have the `manage`
  19. <<privileges-list-cluster,cluster privilege>> to use this API.
  20. * If the <<operator-privileges,{operator-feature}>> is enabled, only operator
  21. users can use this API.
  22. [discrete]
  23. ==== Examples
  24. The following example queries the info API:
  25. [source,console]
  26. ------------------------------------------------------------
  27. DELETE /_license
  28. ------------------------------------------------------------
  29. // TEST[skip:license testing issues]
  30. When the license is successfully deleted, the API returns the following response:
  31. [source,js]
  32. ------------------------------------------------------------
  33. {
  34. "acknowledged": true
  35. }
  36. ------------------------------------------------------------
  37. // NOTCONSOLE