﻿---
title: stack es inference delete cli command
description: Delete an inference endpoint. 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/458/cli/stack/es/inference/delete
---

# stack es inference delete cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es inference delete --inference-id <inference-id> [options]
```

Delete an inference endpoint.

## Options

<definitions>
  <definition term="--inference-id string required">
    The inference identifier.
  </definition>
  <definition term="--task-type string">
    The task type
  </definition>
  <definition term="--[no-]dry-run">
    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.
  </definition>
  <definition term="--[no-]force">
    When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>