---
title: "Delete an environment variable from a project"
method: DELETE
path: "/project/{projectId}/environmentVariable/{environmentVariableId}"
tags: ["Project Environment Variable"]
---

# Delete an environment variable from a project

`DELETE /project/{projectId}/environmentVariable/{environmentVariableId}`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/project/{projectId}/environmentVariable/{environmentVariableId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/project/:projectId/environmentVariable/:environmentVariableId/delete.ts> (a function with typed inputs; its response is checked against the schema)

- To delete an environment variable you must have the project user permission
- You can't delete a BUILT_IN variable
- If you delete a variable having override or alias, the associated override/alias will be deleted as well

## Path parameters

- `projectId` string, uuid, required
- `environmentVariableId` string, uuid, required

## Response `204`

The resource was deleted successfully

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

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