kibana/docs/api/saved-objects/delete.asciidoc
Kaarina Tungseth 09934d6645
[DOCS] API intro (#47164) (#48460)
* [DOCS] API intro

* Logstash configuration management

* Reformatting

* Comments from Josh

* Commets from Gail

* Fixed broken things
2019-10-16 16:01:18 -05:00

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