---
title: "corestack_pending_change_cancel"
url: https://docs.corefinity.com/mcp/tools/corestack_pending_change_cancel
type: tool
last_updated: 2026-11-13
feature: pending-changes
related:
  - https://docs.corefinity.com/api/reference/sites/cancel-site-pending-change.md
  - https://docs.corefinity.com/guides/sites/size-and-capacity/pending-changes-and-apply-windows.md
---
# corestack_pending_change_cancel

**Cancel a pending change.** Withdraw one of your changes queued for tonight's maintenance window, before the window starts. corestack_pending_changes_list gives the item ids. Scope: write.

- Scope: `write`
- Runs as a task: no

## When to use it

Withdraw one of your changes queued for tonight's maintenance window, before the window starts. corestack_pending_changes_list gives the item ids.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `item_id` (integer, ≥ 1, required): The item's id from corestack_pending_changes_list.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "item_id": {
      "description": "The item's id from corestack_pending_changes_list.",
      "minimum": 1,
      "type": "integer"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id",
    "item_id"
  ],
  "type": "object"
}
```

## Refusals

- `item_state`: the item is not in a state this applies to; read it again.
- `batch_running`: tonight's maintenance is running now; wait for it to finish.
- `managed_elsewhere` (message: "This site is managed by another control panel"): another control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_pending_change_cancel",
  "arguments": {
    "site_id": 4211,
    "item_id": 36
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_pending_change_cancel with site_id 4211, item_id 36. (Cancel a pending change.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [DELETE /api/corestack/sites/{site}/pending-changes/{item}](https://docs.corefinity.com/api/reference/sites/cancel-site-pending-change.md)
- Guide: [Pending changes and apply windows](https://docs.corefinity.com/guides/sites/size-and-capacity/pending-changes-and-apply-windows.md)
