delete-search-application.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [role="xpack"]
  2. [[delete-search-application]]
  3. === Delete Search Application
  4. beta::[]
  5. ++++
  6. <titleabbrev>Delete Search Application</titleabbrev>
  7. ++++
  8. Removes a Search Application and its associated alias.
  9. Indices attached to the Search Application are not removed.
  10. [[delete-search-application-request]]
  11. ==== {api-request-title}
  12. `DELETE _application/search_application/<name>`
  13. [[delete-search-application-prereq]]
  14. ==== {api-prereq-title}
  15. Requires the `manage_search_application` cluster privilege.
  16. Also requires <<privileges-list-indices,manage privileges>> on all indices that are included in the Search Application.
  17. [[delete-search-application-path-params]]
  18. ==== {api-path-parms-title}
  19. `<name>`::
  20. (Required, string)
  21. [[delete-search-application-response-codes]]
  22. ==== {api-response-codes-title}
  23. `400`::
  24. The `name` was not provided.
  25. `404` (Missing resources)::
  26. No Search Application matching `name` could be found.
  27. [[delete-search-application-example]]
  28. ==== {api-examples-title}
  29. The following example deletes the Search Application named `my-app`:
  30. [source,console]
  31. ----
  32. DELETE _application/search_application/my-app/
  33. ----
  34. // TEST[skip:TBD]