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 {xpack-ref}/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. {xpack-ref}/security-privileges.html[Security Privileges].
  21. [float]
  22. ==== Examples
  23. The following example queries the info API:
  24. [source,js]
  25. ------------------------------------------------------------
  26. DELETE /_license
  27. ------------------------------------------------------------
  28. // CONSOLE
  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