---
title: "corestack_firewall_preset_detach"
url: https://docs.corefinity.com/mcp/tools/corestack_firewall_preset_detach
type: tool
last_updated: 2026-11-13
feature: firewall
related:
  - https://docs.corefinity.com/api/reference/firewall/detach-firewall-preset.md
  - https://docs.corefinity.com/guides/sites/access-and-security/firewall.md
---
# corestack_firewall_preset_detach

**Detach a firewall preset.** Detach a preset from where it is attached. Type the preset's slug back as confirm_preset, exactly as corestack_firewall_list shows it. Scope: write. Long-running: answers with a task.

- Scope: `write`
- Confirmation: `confirm_preset`
- Runs as a task: yes

## When to use it

Detach a preset. Type its slug back as `confirm_preset` exactly as corestack_firewall_list shows it. Long-running: completes once every environment has applied the change.

## Inputs

- `subscription_id` (integer, required): the attachment's `id` in corestack_firewall_list's `presets`
- `confirm_preset` (string, required): the preset's `slug`

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "confirm_preset": {
      "description": "Type the preset's slug exactly as corestack_firewall_list shows it (e.g. bitbucket-pipelines).",
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    },
    "subscription_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "subscription_id",
    "confirm_preset"
  ],
  "type": "object"
}
```

## Refusals

- `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).
- `switched_off`: the firewall is not available for this object yet.
- `confirm_mismatch`: the typed slug is not this preset's.

## Example

```json
{
  "name": "corestack_firewall_preset_detach",
  "arguments": {
    "subscription_id": 4001,
    "confirm_preset": "bitbucket-pipelines"
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_firewall_preset_detach with subscription_id 4001. (Detach a firewall preset.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [DELETE /api/firewall/preset-subscriptions/{subscription}](https://docs.corefinity.com/api/reference/firewall/detach-firewall-preset.md)
- Guide: [Firewall](https://docs.corefinity.com/guides/sites/access-and-security/firewall.md)
