---
title: "Delete a variable"
method: DELETE
path: "/variable/{variableId}"
tags: ["Variable Main Calls"]
---

# Delete a variable

`DELETE /variable/{variableId}`

## Request

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

- To delete a variable
- 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

- `variableId` 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)
