---
title: "Delete a variable Environment"
method: DELETE
path: "/projects/{id}/variable-environments/{environmentId}"
tags: ["Variable Environments"]
---

# Delete a variable Environment

`DELETE /projects/{id}/variable-environments/{environmentId}`

## Request

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

Deletes a custom Environment. Global cannot be deleted.

## Path parameters

- `id` string, uuid, required
- `environmentId` string, uuid, required

## Response `204`

Variable Environment deleted

## Other responses

- `401`: Unauthorized
- `403`: Project not owned by the caller
- `404`: Variable Environment not found in this Project
- `409`: Global is protected, or the Project is being deleted. Tell them apart with `code`, which is `variable_environment_immutable` or `project_deleting`.
- `500`: Failed to delete the variable Environment

## Changes

- **2026-10-14** `d8d8f53d847b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/variable-environments/:environmentId/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)
