Spaces method and path for this operation:
delete /s/{space_id}/api/saved_objects/{type}/{id}
Refer to Spaces for more information.
WARNING: This API is deprecated. This is a legacy Saved Objects API and may be removed in a future version of Kibana.
Deletes a single Kibana saved object by type and ID.
There is currently no complete replacement for deleting arbitrary saved objects via an HTTP API.
DELETE
/api/saved_objects/{type}/{id}
curl
curl \
-X DELETE "${KIBANA_URL}/api/saved_objects/dashboard/example-dashboard-1?force=false" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "kbn-xsrf: true"
DELETE kbn://api/saved_objects/dashboard/example-dashboard-1?force=false
Response examples (200)
{
"summary": "Successful delete",
"value": {}
}
Response examples (404)
{
"error": "Not Found",
"message": "Saved object [dashboard/does-not-exist] not found",
"statusCode": 404
}