---
title: "Delete a variable for a plan item instance"
method: DELETE
path: "/cmmn-runtime/plan-item-instances/{planItemInstanceId}/variables/{variableName}"
tags: ["Plan Item Instances"]
---

# Delete a variable for a plan item instance

`DELETE /cmmn-runtime/plan-item-instances/{planItemInstanceId}/variables/{variableName}`

## Request

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

## Path parameters

- `planItemInstanceId` string, required
- `variableName` string, required

## Query parameters

- `scope` string

## Response `204`

Indicates both the plan item and variable were found and variable has been deleted.

## Other responses

- `404`: Indicates the requested plan item was not found or the plan item does not have a variable with the given name in the requested scope. Status description contains additional information about the error.

---

[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)
