---
title: "Batch remove environment variables"
method: DELETE
path: "/v1/projects/{idOrName}/env"
tags: ["projects"]
---

# Batch remove environment variables

`DELETE /v1/projects/{idOrName}/env`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/projects/{idOrName}/env`
- Auth: HTTP bearer

Delete multiple environment variables for a given project in a single batch operation.

## Path parameters

- `idOrName` string, required: The unique project identifier or the project name

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `ids` string[], required: Array of environment variable IDs to delete

## Response `200`

- object
  - `deleted` number, required
  - `ids` string[], required

## Other responses

- `400`: One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `409`
- `410`

## Changes

- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2025-10-09** `50caddad4ae7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/projects/:idOrName/env/delete.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
