---
title: "DELETE /v1/projects/{projectOrProductUID}/environment_variables/{key}"
method: DELETE
path: "/v1/projects/{projectOrProductUID}/environment_variables/{key}"
tags: ["project"]
---

# DELETE /v1/projects/{projectOrProductUID}/environment_variables/{key}

`DELETE /v1/projects/{projectOrProductUID}/environment_variables/{key}`

Delete an environment variable of a project by key

## Path parameters

- `projectOrProductUID` string, required
- `key` string, required

## Response `200`

The response body from an environment variables request.

- EnvironmentVariables
  - `environment_variable_notes` object — Optional per-variable annotations, keyed by variable name. Setting a key to an empty string removes its note. A 400 error is returned for any key that does not already exist as a stored variable and is not included in environment_variables in the same request.
  - `environment_variables` object, required

## Other responses

- `default` — The response body in case of an API error.

## Changes

- **2026-07-10** `1887e880199a` — 2 breaking, 8 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - the response's body type/format changed from ``/`` to `object`/`` for status `default`
  - added the optional property `debug` to the response with the `default` status
  - added the optional property `details` to the response with the `default` status
  - …6 more

[Change history](https://skmtc.dev/notefile/apis/notehub-api/changes/v1/projects/:projectOrProductUID/environment_variables/:key/delete.md)

---

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