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.
Path parameters
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.
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
One SSL rule: the SSL mode Cloudflare uses for the named domains of the site.
Fields
The domains the rule names, sorted.
The {rule} a removal takes. At least 1.
Format: date-time.
Format: date-time.
The site row the rule was set for.
full is Full, strict is Full (strict).
fullstrictsetting 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.
settingactiveremovedkeptfailedWhy the rule is in its state, when there is something to say.
The Cloudflare zone the rule is in.
Fields
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | feature_off | This feature is not on for your organisation yet. |
409 | busy | Another operation is running on the site. Wait for it to finish. |
409 | managed_elsewhere | This site is read-only here. Change it in the control panel that manages it. |
409 | not_connected | The outside account this needs is not connected for your company. Connect it first; the message names it. |
409 | not_owner | The Cloudflare rule belongs to another change, so it was left as it is. Wait for that change to finish. |
409 | rule_edited | The 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. |
409 | no_zone | The 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. |
422 | rules_not_allowed | The Cloudflare token may not change the zone's rules. Allow Zone, Config Rules, Edit on the token, or connect one that can. |
422 | not_connected | The outside account this needs is not connected for your company. Connect it first; the message names it. |
429 | rate_limited | Wait for the seconds in Retry-After. |
502 | unavailable | This 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"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->delete('https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules/318');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules/318', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.delete(
"https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules/318",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"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"
}
}
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "busy",
"message": "This SSL rule is being changed. Try again in a moment.",
"reason": "busy"
}{
"code": "rules_not_allowed",
"message": "The Cloudflare token may not change Configuration Rules on harbourandfinch.example.com. Allow Zone > Config Rules > Edit on the token, then try again.",
"reason": "rules_not_allowed"
}{
"code": "rate_limited",
"message": "Too many Cloudflare changes this hour. Try again later.",
"reason": "rate_limited",
"retry_after_seconds": 3600
}{
"code": "unavailable",
"message": "Cloudflare did not answer. Try again in a minute.",
"reason": "unavailable"
}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.