mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [DOCS] Add space_id path parameter to saved_object APIs * [DOCS] Apply suggested edits for #47627 * [DOCS] Apply suggested edits for #47627 to delete API
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
[[saved-objects-api-delete]]
|
|
=== Delete object API
|
|
++++
|
|
<titleabbrev>Delete object</titleabbrev>
|
|
++++
|
|
|
|
experimental[] Remove {kib} saved objects.
|
|
|
|
WARNING: Once you delete a saved object, _it cannot be recovered_.
|
|
|
|
[[saved-objects-api-delete-request]]
|
|
==== Request
|
|
|
|
`DELETE /api/saved_objects/<type>/<id>`
|
|
|
|
`DELETE /s/<space_id>/api/saved_objects/<type>/<id>`
|
|
|
|
[[saved-objects-api-delete-path-params]]
|
|
==== Path parameters
|
|
|
|
`space_id`::
|
|
(Optional, string) An identifier for the space. If `space_id` is not provided in the URL, the default space is used.
|
|
|
|
`type`::
|
|
(Required, string) Valid options include `visualization`, `dashboard`, `search`, `index-pattern`, `config`, and `timelion-sheet`.
|
|
|
|
`id`::
|
|
(Required, string) The object ID that you want to remove.
|
|
|
|
[[saved-objects-api-delete-response-codes]]
|
|
==== Response code
|
|
|
|
`200`::
|
|
Indicates a successful call.
|
|
|
|
==== Examples
|
|
|
|
Delete an index pattern object with the `my-pattern` ID:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
DELETE api/saved_objects/index-pattern/my-pattern
|
|
--------------------------------------------------
|
|
// KIBANA
|