---
title: "DeleteVariable"
method: POST
path: "/depot.ci.v3beta2.VariableService/DeleteVariable"
tags: ["VariableService"]
---

# DeleteVariable

`POST /depot.ci.v3beta2.VariableService/DeleteVariable`

## Request

- Base URL: `https://api.depot.dev`
- URL: `https://api.depot.dev/depot.ci.v3beta2.VariableService/DeleteVariable`
- Auth: HTTP bearer

## Headers

- `Connect-Protocol-Version` 1, required: Define the version of the Connect protocol
- `Connect-Timeout-Ms` number: Define the timeout, in ms

## Request body

- union
  - object
    - `id` string, required
  - object
    - `name` string, required

## Response `200`

Success

- DepotCiV3beta2DeleteVariableResponse

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/depot/apis/depot-ci-api.md) - [All operations](https://skmtc.dev/depot/apis/depot-ci-api/llms.txt) - [OpenAPI document](https://skmtc.dev/depot/apis/depot-ci-api/revisions/6cf759b535b4?raw)
