delete-license.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. [float]
  10. ==== Request
  11. `DELETE /_license`
  12. [float]
  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. [float]
  18. ==== Authorization
  19. You must have `manage` cluster privileges to use this API.
  20. For more information, see
  21. <<security-privileges>>.
  22. [float]
  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