> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Agent

**DELETE `/api/projects/{project_name}/agents/{agent_name}`**

This API endpoint deletes an agent using the `DELETE` method.

<Tip>
  Learn more about agents and the available parameters following [this doc page](/mindsdb_sql/agents/agent).
</Tip>

### Path Parameters

<ParamField body="project_name" type="string" required>
  Defines the project where the agent are located. Note that the default project name is `mindsdb`.
</ParamField>

<ParamField body="agent_name" type="string" required>
  Defines the agent name.
</ParamField>

### Body

None.

### Response

None.

<RequestExample>
  ```shell Shell theme={null}
  curl --request DELETE \
    --url http://127.0.0.1:47334/api/projects/mindsdb/agents/my_agent
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  200 OK
  ```
</ResponseExample>
