delete-license.asciidoc 1.2 KB

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