---
title: "Deprecate tool versions"
method: DELETE
path: "/v1/{organization}/tool/{tool_id}/version/{versions}"
tags: ["Tool"]
---

# Deprecate tool versions

`DELETE /v1/{organization}/tool/{tool_id}/version/{versions}`

Deprecate tool versions that match the specified semver constraint.

#### Permissions
This endpoint requires the following permissions:
* `Tool:ModifyTool` on the tool whose versions to deprecate.

## Path parameters

- `organization` string, required
- `tool_id` string, required — The ID of the tool to deprecate.
- `versions` string, required — A semver constraint that specifies the version to deprecate in the [Python packaging specification](https://packaging.python.org/en/latest/specifications/version-specifiers/#id5). All versions that match this constraint will be deprecated.

## Headers

- `x-mongo-cluster-name` string, nullable — The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
- `Sec-WebSocket-Protocol` string[]

## Response `204`

Succeeded.

## Other responses

- `401` — Invalid authorization credentials.
- `403` — Missing required permissions.
- `404` — The specified organization or tool does not exist.
- `422` — Invalid request path parameter or request body failed validation.
- `429` — The user has exceeded the rate limit of 20 requests per minute for this endpoint.
- `503` — The service is going through temporary maintenance.

---

[API](https://skmtc.net/amigo/apis/amigo-api.md) · [All operations](https://skmtc.net/amigo/apis/amigo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amigo/amigo-api/revisions/f0f28319e448/schema)
