---
title: "Delete Workspace Env Var"
method: DELETE
path: "/api/public/v2/env-vars/{var_id}"
tags: ["env-vars"]
---

# Delete Workspace Env Var

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

## Path parameters

- `var_id` integer, required

## Response `200`

Successful Response

- object
  - `success` boolean

## Other responses

- `401` — Unauthorized - missing or invalid API key.
- `404` — Workspace 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)
