younifyd
Menu

Delete an inference endpoint (DELETE /_inference/{task_type}/{inference_id})

Delete an inference endpoint

DELETE/_inference/{task_type}/{inference_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Delete an inference endpoint (DELETE /_inference/{task_type}/{inference_id}) action (under inference).
  3. Fill in the fields below, then reference the result from later steps as {{deleteAnInferenceEndpointDeleteInferenceTaskTypeInferenceId.response.data}}.

Request

Path parameters

task_typestringrequired

The task type

One ofsparse_embeddingtext_embeddingrerankcompletionchat_completionembedding

inference_idstringrequired

The inference identifier.

Query parameters

dry_runboolean

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.

forceboolean

When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields.

Response

Returns 200 with a any. Read it in later steps with {{deleteAnInferenceEndpointDeleteInferenceTaskTypeInferenceId.response.data.<field>}}.

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.