delete-license.asciidoc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 {stack-ov}/license-expiration.html[License Expiration].
  16. [float]
  17. ==== Authorization
  18. You must have `manage` cluster privileges to use this API.
  19. For more information, see
  20. <<security-privileges>>.
  21. [float]
  22. ==== Examples
  23. The following example queries the info API:
  24. [source,console]
  25. ------------------------------------------------------------
  26. DELETE /_license
  27. ------------------------------------------------------------
  28. // TEST[skip:license testing issues]
  29. When the license is successfully deleted, the API returns the following response:
  30. [source,js]
  31. ------------------------------------------------------------
  32. {
  33. "acknowledged": true
  34. }
  35. ------------------------------------------------------------
  36. // NOTCONSOLE