Spaces method and path for this operation:
Refer to Spaces for more information.
Deletes an AI Index by ID.
By default, the API preserves the backing data stream or index, its Knowledge Indicators, and attached workflow automations. Set delete_knowledge_indicators to true to delete the backing data stream or index and its Knowledge Indicators. Set delete_automations to true to delete the attached workflow automations.
The API does not delete the backing data stream or index when another AI Index uses the same destination.
Returns a 404 response when Context Engine is turned off in this space (contextEngine:enabled).
For more information, refer to the Context Engine documentation.
[Required authorization] Route required privileges: contextEngine:write. Extended privileges (optional, expand functionality when granted): workflowsManagement:delete.
Query parameters
-
When true, also delete the backing data stream/index, which removes its Knowledge Indicators. Skipped when another AI Index still uses the same dest. Defaults to false.
Default value is
false. -
When true, also delete the attached workflow automations. Defaults to false.
Default value is
false.
curl \
-X DELETE "https://${KIBANA_URL}/api/context_engine/ai_index/customer_support?delete_knowledge_indicators=true" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "kbn-xsrf: true"
DELETE kbn:/api/context_engine/ai_index/customer_support?delete_knowledge_indicators=true
{
"acknowledged": true,
"errors": [
"Failed to delete automations: Workflows management is unavailable."
]
}
{
"acknowledged": true,
"errors": []
}
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 404
}
{
"error": "Not Found",
"message": "AI index 'customer_support' not found",
"statusCode": 404
}
{
"error": "Conflict",
"message": "AI index 'customer_support' is managed and cannot be modified via the API",
"statusCode": 409
}