All methods and paths for this operation:
DELETE /_inference/{inference_id}
DELETE /_inference/{task_type}/{inference_id}
This API requires the manage_inference cluster privilege (the built-in inference_admin role grants this privilege).
Path parameters
-
The task type
Values are
sparse_embedding,text_embedding,rerank,completion, orchat_completion. -
The inference identifier.
Query parameters
-
When true, checks the semantic_text fields and inference processors that reference the endpoint and returns them in a list, but does not delete the endpoint.
-
When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields.
DELETE /_inference/{task_type}/{inference_id}
Console
DELETE /_inference/sparse_embedding/my-elser-model resp = client.inference.delete( task_type="sparse_embedding", inference_id="my-elser-model", ) const response = await client.inference.delete({ task_type: "sparse_embedding", inference_id: "my-elser-model", }); response = client.inference.delete( task_type: "sparse_embedding", inference_id: "my-elser-model" ) $resp = $client->inference()->delete([ "task_type" => "sparse_embedding", "inference_id" => "my-elser-model", ]); curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_inference/sparse_embedding/my-elser-model" client.inference().delete(d -> d .inferenceId("my-elser-model") .taskType(TaskType.SparseEmbedding) );