---
title: "Delete a variable set"
method: DELETE
path: "/variableSets/{variableSetId}"
tags: ["resource-api"]
---

# Delete a variable set

`DELETE /variableSets/{variableSetId}`

Delete a variable set from Tracetest

## Parameters

- `./parameters.yaml#/components/parameters/variableSetId` — unresolved $ref

## Response `204`

successful operation

## Other responses

- `400` — invalid VariableSet, some data was sent in incorrect format.
- `404` — VariableSet not found
- `500` — problem deleting an variable set

## Changes

- **2023-08-09** `42e9295e7f32` — 1 info
  - api operation id `deleteEnvironment` removed and replaced with `deleteVariableSet`
- **2023-08-03** `91036c61f8d9` — 1 info
  - endpoint added
- **2022-11-17** `9ee6203c38fa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kubeshop/apis/tracetest/changes/variableSets/:variableSetId/delete.md)

---

[API](https://skmtc.dev/kubeshop/apis/tracetest.md) · [All operations](https://skmtc.dev/kubeshop/apis/tracetest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kubeshop/tracetest/revisions/fad7f202ff22/schema)
