delete-license.asciidoc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[delete-license]]
  4. === Delete License API
  5. This API enables you to delete licensing information.
  6. [float]
  7. ==== Request
  8. `DELETE /_xpack/license`
  9. [float]
  10. ==== Description
  11. When your license expires, {xpack} operates in a degraded mode. For more
  12. information, see {xpack-ref}/license-expiration.html[License Expiration].
  13. [float]
  14. ==== Authorization
  15. You must have `manage` cluster privileges to use this API.
  16. For more information, see
  17. {xpack-ref}/security-privileges.html[Security Privileges].
  18. [float]
  19. ==== Examples
  20. The following example queries the info API:
  21. [source,js]
  22. ------------------------------------------------------------
  23. DELETE _xpack/license
  24. ------------------------------------------------------------
  25. // CONSOLE
  26. // TEST[skip:license testing issues]
  27. When the license is successfully deleted, the API returns the following response:
  28. [source,js]
  29. ------------------------------------------------------------
  30. {
  31. "acknowledged": true
  32. }
  33. ------------------------------------------------------------
  34. // NOTCONSOLE