mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.6`: - [[DOCS] Fixes formatting in the Osquery manager APIs (#149871)](https://github.com/elastic/kibana/pull/149871) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kaarina Tungseth","email":"kaarina.tungseth@elastic.co"},"sourceCommit":{"committedDate":"2023-01-30T18:41:10Z","message":"[DOCS] Fixes formatting in the Osquery manager APIs (#149871)\n\n## Summary\r\n\r\nFixes the formatting of the rogue `Query parameters` sections.","sha":"be498a5c581e901885ca1f1241e9a64fb2919b98","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","v8.4.0","v8.5.0","v8.6.0","v8.7.0"],"number":149871,"url":"https://github.com/elastic/kibana/pull/149871","mergeCommit":{"message":"[DOCS] Fixes formatting in the Osquery manager APIs (#149871)\n\n## Summary\r\n\r\nFixes the formatting of the rogue `Query parameters` sections.","sha":"be498a5c581e901885ca1f1241e9a64fb2919b98"}},"sourceBranch":"main","suggestedTargetBranches":["8.4","8.5","8.6"],"targetPullRequestStates":[{"branch":"8.4","label":"v8.4.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/149871","number":149871,"mergeCommit":{"message":"[DOCS] Fixes formatting in the Osquery manager APIs (#149871)\n\n## Summary\r\n\r\nFixes the formatting of the rogue `Query parameters` sections.","sha":"be498a5c581e901885ca1f1241e9a64fb2919b98"}}]}] BACKPORT--> Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
[[osquery-manager-packs-api-delete]]
|
|
=== Delete pack API
|
|
++++
|
|
<titleabbrev>Delete pack</titleabbrev>
|
|
++++
|
|
|
|
experimental[] Delete packs.
|
|
|
|
WARNING: Once you delete a pack, _it cannot be recovered_.
|
|
|
|
|
|
[[osquery-manager-packs-api-delete-request]]
|
|
==== Request
|
|
|
|
`DELETE <kibana host>:<port>/api/osquery/packs/<id>`
|
|
|
|
`DELETE <kibana host>:<port>/s/<space_id>/api/osquery/packs/<id>`
|
|
|
|
|
|
[[osquery-manager-packs-api-delete-path-params]]
|
|
==== Path parameters
|
|
|
|
`space_id`::
|
|
(Optional, string) The space identifier. When `space_id` is not provided in the URL, the default space is used.
|
|
|
|
`id`::
|
|
(Required, string) The ID of the pack you want to delete.
|
|
|
|
|
|
[[osquery-manager-packs-api-delete-response-codes]]
|
|
==== Response code
|
|
|
|
`200`::
|
|
Indicates that the pack is deleted. Returns an empty response body.
|
|
|
|
[[osquery-manager-packs-api-delete-example]]
|
|
==== Example
|
|
|
|
Delete a pack object with the `bbe5b070-0c51-11ed-b0f8-ad31b008e832` ID:
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
$ curl -X DELETE api/osquery/packs/bbe5b070-0c51-11ed-b0f8-ad31b008e832
|
|
--------------------------------------------------
|
|
// KIBANA
|