Delete a Vega library item Generally available; added in 9.7.0

DELETE /api/vega/{id}

Spaces method and path for this operation:

delete /s/{space_id}/api/vega/{id}

Refer to Spaces for more information.

Permanently deletes a Vega library item by its ID. Dashboards that link to the item by reference can no longer display the panel.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • id string Required

    The Vega library item ID, as returned by the create or search endpoints, or the ID you chose when you created the item with the upsert endpoint.

Responses

  • 204

    No content, the Vega library item was successfully deleted.

  • 403

    forbidden

  • 404

    not found

DELETE /api/vega/{id}
curl -X DELETE "${KIBANA_URL}/api/vega/7c1d8e40-9b2f-11f0-a5c3-2f6e4b8d9a10" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
DELETE kbn:/api/vega/7c1d8e40-9b2f-11f0-a5c3-2f6e4b8d9a10