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.
DELETE
/api/vega/{id}
Delete a Vega library item - cURL
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