---
title: "Delete Tool Env Var"
method: DELETE
path: "/api/public/v2/tool-registry/{identifier}/env-vars/{var_id}"
tags: ["env-vars", "tool-registry"]
---

# Delete Tool Env Var

`DELETE /api/public/v2/tool-registry/{identifier}/env-vars/{var_id}`

## Path parameters

- `identifier` string, required — Tool ID (numeric) or name
- `var_id` integer, required

## Response `200`

Successful Response

- object
  - `success` boolean

## Other responses

- `401` — Unauthorized - missing or invalid API key.
- `404` — Tool or env var not found.
- `422` — Validation error - request parameters or body are invalid.

---

[API](https://skmtc.dev/promptlayer/apis/promptlayer-api.md) · [All operations](https://skmtc.dev/promptlayer/apis/promptlayer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/promptlayer/promptlayer-api/revisions/a23093a0a506/schema)
