---
title: "Delete an environment variable"
method: DELETE
path: "/project/{project-slug}/envvar/{name}"
tags: ["Project"]
---

# Delete an environment variable

`DELETE /project/{project-slug}/envvar/{name}`

Deletes the environment variable named :name.

## Path parameters

- `project-slug` string, required
- `name` string, required

## Response `200`

A confirmation message.

- object — message response
  - `message` string, required — A human-readable message

## Other responses

- `default` — Error response.

---

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