mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* [DOCS] API intro * Logstash configuration management * Reformatting * Comments from Josh * Commets from Gail * Fixed broken things
39 lines
933 B
Text
39 lines
933 B
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>`
|
|
|
|
[[saved-objects-api-delete-path-params]]
|
|
==== Path parameters
|
|
|
|
`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
|