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

# Delete one or more Env Var

`DELETE /v1/env`

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
      - `code` string, required
      - `message` string, required
      - `key` string
      - `envVarId` string
      - `envVarKey` string
      - `action` string
      - `link` string
      - `value` union
        - string
        - string[]
      - `gitBranch` string
      - `target` union
        - string[]
        - 'development' | 'development' | 'preview' | 'preview' | 'production'
      - `project` 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.
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/revisions/61d1ba3f6dac/schema)
