---
title: "Delete one or more Env Var"
method: DELETE
path: "/v1/env"
tags: ["environment"]
---

# Delete one or more Env Var

`DELETE /v1/env`

## Request

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

Deletes one or many Shared Environment Variables for a given team.

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `ids` string[], required: IDs of the Shared Environment Variables to delete

## Response `200`

- object
  - `deleted` string[], required
  - `failed` object[], required
    - `error` object, required
      - `action` string
      - `code` string, required
      - `envVarId` string
      - `envVarKey` string
      - `gitBranch` string
      - `key` string
      - `link` string
      - `message` string, required
      - `project` string
      - `target` union
        - string[]
        - 'development' | 'development' | 'preview' | 'preview' | 'production'
      - `value` union
        - string
        - string[]

## Other responses

- `400`: One of the provided values in the request body is invalid.
- `401`: The request is not authorized.
- `402`: The account is missing a payment so payment method must be updated
- `403`: You do not have permission to access this resource.
- `404`
- `410`

## Changes

- **2026-09-30** `099fbe1f521c`: 1 info
  - added the non-success response with the status `404`
- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2025-11-28** `45991e5c8b6d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/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)
