---
title: "DELETE /v2/vals/{val_id}/environment_variable_groups/{group_id}"
method: DELETE
path: "/v2/vals/{val_id}/environment_variable_groups/{group_id}"
tags: ["vals"]
---

# DELETE /v2/vals/{val_id}/environment_variable_groups/{group_id}

`DELETE /v2/vals/{val_id}/environment_variable_groups/{group_id}`

Detach an environment variable group from this val. The group itself, and the variables in it, are left alone.

## Path parameters

- `val_id` string, uuid, required
- `group_id` string, uuid, required

## Response `204`

The group is no longer attached to the val

## Other responses

- `404` — Val or environment variable group not found in your organization, or the group was not attached to this val

## Changes

- **2026-08-05** `4d8b6d2e6db3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/val-town/apis/val-town-api/changes/v2/vals/:val_id/environment_variable_groups/:group_id/delete.md)

---

[API](https://skmtc.dev/val-town/apis/val-town-api.md) · [All operations](https://skmtc.dev/val-town/apis/val-town-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/val-town/val-town-api/revisions/4d8b6d2e6db3/schema)
