IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete inference API
editDelete inference API
editThis functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
Deletes an inference model deployment.
Request
editDELETE /_inference/<task_type>/<model_id>
Prerequisites
edit-
Requires the
manage
cluster privilege.
Path parameters
edit- <model_id>
- (Required, string) The unique identifier of the inference model to delete.
- <task_type>
- (Required, string) The type of inference task that the model performs.
Examples
editThe following API call deletes the my-elser-model
inference model that can
perform sparse_embedding
tasks.
DELETE /_inference/sparse_embedding/my-elser-model
The API returns the following response:
{ "acknowledged": true }