mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
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
|