# Delete tool

```http
DELETE /projects/{project_reference}/tools/{tool_id}
```

Delete the source file of a project tool that is no longer needed; returns an acknowledgement. Requires project.agents.write.

## Parameters

| Name                 | In    | Required | Description                                                                                                 |
| -------------------- | ----- | -------- | ----------------------------------------------------------------------------------------------------------- |
| `project_reference`  | path  | Yes      | Project slug, UUID, or domain that identifies the project.                                                  |
| `tool_id`            | path  | Yes      | Project-defined tool ID returned by list\_tools. This lookup does not load a host executable tool contract. |
| `source_target_kind` | query |          |                                                                                                             |
| `target_branch_id`   | query |          |                                                                                                             |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | Tool deleted                                   |
| 400    | Bad request                                    |
| 401    | Unauthorized                                   |
| 403    | Forbidden. API keys also require delete scope. |
| 404    | Not found                                      |
| 409    | Conflict                                       |
