---
title: "delete_variable"
description: "Delete a variable."
sidebarTitle: "delete_variable"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Delete a variable.

<Warning>
  **Destructive · Writes data · Idempotent · Calls external systems.** This tool can modify or delete data. Review the arguments before letting an agent call it.
</Warning>

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `acknowledge` | boolean | Yes | Must be true to confirm the delete |
| `variable_id` | number | Yes | Variable id |

## Example arguments

Illustrative arguments an agent supplies when calling this tool:

```json
{
  "variable_id": 0,
  "acknowledge": false
}
```

## Description

```text
Refuses if any test references it (the platform enforces this guard server-side and exposes no override — there is no force parameter).

acknowledge=true is required (the delete is destructive). When the refusal lists test references, update those tests ('test_edit') or remove the references first, then re-run delete.
```

## What's next?

<Columns cols={2}>
  <Card title="All MCP tools" icon="robot" href="/mcp/tools/overview">
    Browse the full tool reference by category.
  </Card>
  <Card title="Connect a client" icon="plug" href="/mcp/connect">
    Point Claude, Cursor, or Claude Code at the server.
  </Card>
</Columns>
