projects

Remove an environment variable

Changed on

Delete a specific environment variable for a given project by passing the environment variable identifier and either passing the project id or name in the URL.

delete/v9/projects/{idOrName}/env/{id}

Request

  • Base URL: https://api.vercel.com
  • URL: https://api.vercel.com/v9/projects/{idOrName}/env/{id}
  • Auth: HTTP bearer

Path parameters

idOrNamestring required

The unique project identifier or the project name

Example:prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
idstring required

The unique environment variable identifier

Example:XMbOEya1gUUO1ir4

Query parameters

customEnvironmentIdstring

The unique custom environment identifier within the project

Example:env_123abc4567
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Response

The environment variable was successfully removed

OR
OR

Changes

    • breaking

      added subschema #1 subschema #2 subschema #3 to the response body oneOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 from the response body oneOf list for the response status

    • breaking

      added subschema #1 subschema #2 subschema #3 to the response body oneOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 from the response body oneOf list for the response status