---
title: "Delete a variable"
method: DELETE
path: "/cmmn-runtime/case-instances/{caseInstanceId}/variables/{variableName}"
tags: ["Case Instance Variables"]
---

# Delete a variable

`DELETE /cmmn-runtime/case-instances/{caseInstanceId}/variables/{variableName}`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-runtime/case-instances/{caseInstanceId}/variables/{variableName}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-runtime/case-instances/:caseInstanceId/variables/:variableName/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `caseInstanceId` string, required
- `variableName` string, required

## Query parameters

- `scope` string

## Response `204`

Indicates the variable was found and has been deleted. Response-body is intentionally empty.

## Other responses

- `404`: Indicates the requested variable was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
