CorefinityCorefinityDocs
Open the Control PanelControl Panel
Cloudflare · 10 of 10

Delete an SSL rule

Takes the rule out of the Cloudflare zone, so its domains use the zone's own SSL mode again. A rule that was changed in Cloudflare afterwards is left there. A deleted site's rules can still be removed.

DELETE/api/corestack/sites/{site}/cloudflare/ssl-rules/{rule}

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

ruleintegerRequired

The id of one of the site's SSL rules. Digits only. At least 1.

Returns

200 The rule, now removed. A rule that was already removed answers the same.

Fields of the 200 answer
ruleobjectRequired

One SSL rule: the SSL mode Cloudflare uses for the named domains of the site.

Fields
hostsarray of stringsRequired

The domains the rule names, sorted.

idintegerRequired

The {rule} a removal takes. At least 1.

removed_atstring or nullRequired

Format: date-time.

set_atstring or nullRequired

Format: date-time.

site_idinteger or nullRequired

The site row the rule was set for.

sslstringRequired

full is Full, strict is Full (strict).

fullstrict
statestringRequired

setting while it is being written, active once Cloudflare has it, removed, failed when it could not be written, and kept when it was changed in Cloudflare afterwards and so was left there.

settingactiveremovedkeptfailed
state_reasonstring or nullRequired

Why the rule is in its state, when there is something to say.

zoneobjectRequired

The Cloudflare zone the rule is in.

Fields
idstringRequired
namestringRequired

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409busyAnother operation is running on the site. Wait for it to finish.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
409not_connectedThe outside account this needs is not connected for your company. Connect it first; the message names it.
409not_ownerThe Cloudflare rule belongs to another change, so it was left as it is. Wait for that change to finish.
409rule_editedThe Cloudflare rule was changed in Cloudflare after the Control Panel set it, so it was left as it is. Change or remove it in Cloudflare.
409no_zoneThe site's domain is not in a connected Cloudflare zone, or Cloudflare is off for the site. Connect the Cloudflare account that holds the zone.
422rules_not_allowedThe Cloudflare token may not change the zone's rules. Allow Zone, Config Rules, Edit on the token, or connect one that can.
422not_connectedThe outside account this needs is not connected for your company. Connect it first; the message names it.
429rate_limitedWait for the seconds in Retry-After.
502unavailableThis is not available for the site or environment, or not at the moment. Read the message; try again later where it says so, or contact support.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X DELETE https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules/318 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "rule": {
    "hosts": [
      "harbourandfinch.example.com",
      "www.harbourandfinch.example.com"
    ],
    "id": 318,
    "removed_at": "2026-11-03T10:02:11+00:00",
    "set_at": "2026-11-03T09:16:40+00:00",
    "site_id": 1042,
    "ssl": "full",
    "state": "removed",
    "state_reason": null,
    "zone": {
      "id": "zone-example-1",
      "name": "harbourandfinch.example.com"
    }
  }
}
Try it

Try it is off for this endpointIt deletes data that cannot be brought back. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT