---
title: "Delete a variable"
method: DELETE
path: "/v4/variables/{variableId}"
tags: ["Variables"]
---

# Delete a variable

`DELETE /v4/variables/{variableId}`

## Request

- Base URL: `https://api.kadoa.com`
- URL: `https://api.kadoa.com/v4/variables/{variableId}`
- Auth: API key in header `x-api-key`

Permanently delete a variable by its ID. A secret bound to a connector returns 409 Conflict.

## Path parameters

- `variableId` string, required

## Response `200`

200

- VariableResponse: Response containing a single variable
  - `variable` union, required: A variable. Secret responses contain metadata only and never expose the value.
    - object
      - `id` string, required: Unique variable identifier
      - `key` string, required: Variable key (unique per team/user scope)
      - `value` string, required: Variable value
      - `dataType` 'STRING' | 'OBJECT' | 'ARRAY' | 'NUMBER'
      - `createdAt` string, required: ISO 8601 creation timestamp
      - `updatedAt` string: ISO 8601 last update timestamp
    - object
      - `id` string, required: Unique variable identifier
      - `key` string, required: Variable key (unique per team scope)
      - `dataType` 'SECRET', required
      - `provider` 'GOOGLE_SECRET_MANAGER', required
      - `managementMode` 'KADOA_MANAGED' | 'CUSTOMER_MANAGED', required
      - `status` 'ACTIVE' | 'NEEDS_ATTENTION' | 'DELETING', required
      - `currentVersion` string
      - `lastResolvedVersion` string
      - `createdAt` string, required: ISO 8601 creation timestamp
      - `updatedAt` string: ISO 8601 last update timestamp
      - `lastRotatedAt` string
      - `lastResolvedAt` string
  - `error` string, nullable, required

## Other responses

- `401`: 401
- `403`: 403
- `404`: 404
- `409`: 409
- `500`: 500
- `503`: 503

---

[API](https://skmtc.dev/kadoa/apis/kadoa-api.md) · [All operations](https://skmtc.dev/kadoa/apis/kadoa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kadoa/apis/kadoa-api/revisions/bf7803c927b4?raw)
