---
title: "Delete a variable"
method: DELETE
path: "/projects/{id}/variables/{name}"
tags: ["Variables"]
---

# Delete a variable

`DELETE /projects/{id}/variables/{name}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/variables/{name}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Deletes a project-level environment variable and triggers asynchronous propagation
of the removal to deployed functions and frontends in the project's configured regions.

## Path parameters

- `id` string, uuid, required
- `name` string, required

## Response `204`

Variable deleted

## Other responses

- `404`: Variable not found

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 3 breaking, 2 info
  - added the new path request parameter `id`
  - added the new path request parameter `name`
  - the response's body type changed from no type to `object` for status `404`
  - added the optional property `code` to the response with the `404` status
  - …1 more
- **2026-08-27** `bb44e98aba2e`: 2 breaking, 3 warning
  - the response's body type changed from `object` to no type for status `404`
  - removed the required property `error` from the response with the `404` status
  - deleted the `path` request parameter `id`
  - deleted the `path` request parameter `name`
  - …1 more
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `404` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/variables/:name/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
