# Delete a tool

Delete a workspace tool without checking whether Agents, Procedures, or Workflows still reference it. Agent tool lists skip the missing tool; dependent Procedure or Workflow validation or runtime can fail.

## Endpoint

`DELETE /api/v1/workspaces/{workspace_id}/tools/{tool_id}`

## Authentication

| Class | Authentication | Minimum role | API key |
| --- | --- | --- | --- |
| dashboard-session-api | Dashboard session cookie; mutations also require X-CX-Request: 1. | admin | Not allowed |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | path | `string` | Yes | — |
| `tool_id` | path | `string` | Yes | — |

## Request body

This operation has no request body.

## Example

```bash
curl --request DELETE 'https://operade.ai/api/v1/workspaces/ws_demo/tools/tool_demo' \
  --cookie 'cx_session=YOUR_SESSION_COOKIE' \
  --header 'X-CX-Request: 1'
```

## Responses

| Status | Description | Content |
| --- | --- | --- |
| 4XX | Handled client error | application/json: `ErrorResponse` |
| 204 | Successful Response | No body |

### 4XX application/json response schema

| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `$` | `object` | ErrorResponse | — | No | Yes | — | — |
| `error` | `object` | ErrorItem | — | No | Yes | — | — |
| `error.code` | `string` | — | — | No | Yes | — | — |
| `error.details` | `object` | — | — | No | No | — | — |
| `error.message` | `string` | — | — | No | Yes | — | — |

### Response example

HTTP 204
This response has no body.

## Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the [distributed error index](/docs/reference/api/errors) to find each code's canonical domain page.

| Status | Code | Description |
| --- | --- | --- |
| 401 | `unauthenticated` | Authentication is missing, invalid, or revoked. |
| 403 | `forbidden` | The authenticated caller does not have access to this operation. |
| 404 | `not_found` | The requested workspace resource was not found. |

## Related operations

- [Clone a tool](/docs/api-reference/tools/clone-tool) — `POST /api/v1/workspaces/{workspace_id}/tools/{tool_id}/clone`
- [Create a tool](/docs/api-reference/tools/create-tool) — `POST /api/v1/workspaces/{workspace_id}/tools`
- [Get a tool](/docs/api-reference/tools/get-tool) — `GET /api/v1/workspaces/{workspace_id}/tools/{tool_id}`
