---
title: "corestack_site_cloudflare_ssl_rule_remove"
url: https://docs.corefinity.com/mcp/tools/corestack_site_cloudflare_ssl_rule_remove
type: tool
last_updated: 2026-11-13
feature: cloudflare
related:
  - https://docs.corefinity.com/api/reference/domains/delete-site-cloudflare-ssl-rule.md
  - https://docs.corefinity.com/guides/sites/go-live/cloudflare-for-a-site.md
---
# corestack_site_cloudflare_ssl_rule_remove

**Remove a per-domain SSL rule.** Remove a per-domain SSL rule the Control Panel set for a row; its domains then follow the zone's own SSL/TLS mode. A rule changed in Cloudflare since is left as it is. Scope: write.

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

## When to use it

Remove a per-domain SSL rule the Control Panel set for a row. Its domains then follow the zone's own SSL/TLS mode again, so check that mode first (`corestack_company_cloudflare_get`): under Full (strict), a domain whose site has no certificate Cloudflare accepts stops loading.

The rule is read again in Cloudflare first and deleted only while it is still exactly as the Control Panel set it. A rule already gone is recorded as removed. A rule someone changed in Cloudflare since is left as it is: change or remove it in Cloudflare. A rule a host migration's switch set is removed by that switch while it runs; once the switch has finished it can be removed here. A deleted row's rules can still be removed until the row is purged.

Needs the `write` scope.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `rule_id` (integer, ≥ 1, required): the rule's `id` from `corestack_site_cloudflare_ssl_rules_list`

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "rule_id": {
      "description": "The rule's id, as corestack_site_cloudflare_ssl_rules_list lists it.",
      "minimum": 1,
      "type": "integer"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id",
    "rule_id"
  ],
  "type": "object"
}
```

## Refusals

- `rule_edited`: the rule was changed in Cloudflare after the Control Panel set it, so it was left as it is (`details.rule` shows it, `state` `kept`).
- `not_owner`: a switch that is still running set this rule and removes it itself.
- `busy`: the rule is being changed by another request; try again in a moment.
- `rules_not_allowed`: the Cloudflare token may not change the zone's Configuration Rules. Allow Zone > Config Rules > Edit on the token.
- `no_zone`: the token no longer sees the rule's zone.
- `not_connected`: connect Cloudflare for the company first, or the stored token could not be read.
- `rate_limited`: the company's Cloudflare budget for this hour is spent; `retry_after_seconds` says when to try again.
- `unavailable`: Cloudflare did not answer; nothing was recorded, ask again.
- `tenant_mismatch`: the row has no rule with that id.
- `managed_elsewhere` (message: "This site is managed by another control panel"): another control panel manages this site, so use that control panel for it. 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_site_cloudflare_ssl_rule_remove",
  "arguments": {
    "site_id": 4211,
    "rule_id": 87
  }
}
```

## Answer

- `rule`: the rule, `state` `removed`

## Prompt

```text
Using the Corefinity MCP server, call corestack_site_cloudflare_ssl_rule_remove with site_id 4211, rule_id 87. (Remove a per-domain SSL rule.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [DELETE /api/corestack/sites/{site}/cloudflare/ssl-rules/{rule}](https://docs.corefinity.com/api/reference/domains/delete-site-cloudflare-ssl-rule.md)
- Guide: [Cloudflare for a site](https://docs.corefinity.com/guides/sites/go-live/cloudflare-for-a-site.md)
