---
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}`

## Request

- Base URL: `https://circleci.com/api/v2`
- URL: `https://circleci.com/api/v2/project/{project-slug}/envvar/{name}`
- Auth: one of:
  - API key in header `Circle-Token`
  - HTTP bearer
  - HTTP basic
  - API key in query parameter `circle-token`

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.dev/circleci/apis/circleci-api.md) - [All operations](https://skmtc.dev/circleci/apis/circleci-api/llms.txt) - [OpenAPI document](https://skmtc.dev/circleci/apis/circleci-api/revisions/b9c0e0c24058?raw)
