Delete object API

[experimental] This functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. Remove Kibana saved objects.

Once you delete a saved object, it cannot be recovered.

Request

DELETE <kibana host>:<port>/api/saved_objects/<type>/<id>

DELETE <kibana host>:<port>/s/<space_id>/api/saved_objects/<type>/<id>

DELETE /s/<space_id>/api/saved_objects/<type>/<id>

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.

Response code

200

Indicates a successful call.

Example

Delete an index pattern object with the my-pattern ID:

  1. $ curl -X DELETE api/saved_objects/index-pattern/my-pattern

Most Popular