---
title: "Delete a variable set"
method: DELETE
path: "/v1/workspaces/{workspaceId}/variable-sets/{variableSetId}"
tags: ["Variable Sets"]
---

# Delete a variable set

`DELETE /v1/workspaces/{workspaceId}/variable-sets/{variableSetId}`

Deletes a variable set.

## Path parameters

- `workspaceId` string, required
- `variableSetId` string, required

## Response `202`

Variable set deleted

- VariableSet
  - `createdAt` string, date-time, required
  - `description` string, required
  - `id` string, uuid, required
  - `name` string, required
  - `priority` integer, required
  - `selector` string, required — A CEL expression to select which release targets this variable set applies to
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Invalid request
- `404` — Resource not found

## Changes

- **2026-04-06** `a509862da6ff` — 1 info
  - endpoint added
- **2026-02-19** `e61389fc98ac` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/changes/v1/workspaces/:workspaceId/variable-sets/:variableSetId/delete.md)

---

[API](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api.md) · [All operations](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ctrlplanedev/ctrlplane-api/revisions/156e0d264995/schema)
