CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployment templates · 14 of 15

Delete a company deployment variable

Removes the variable from the company and answers the list that is left. Environments no longer receive it at their next deployment.

DELETE/api/corestack/companies/{company}/deploy-variables/{name}

Path parameters

companyintegerRequired

The id of a company you belong to or manage. Digits only. At least 1.

namestringRequired

The variable's name, without the CF_ prefix builds see it with: letters, digits and underscores, starting with a letter or underscore, at most 64 characters. Any other name is refused 422 invalid on name.

Returns

200 The company's variables after the removal.

Fields of the 200 answer
can_sharebooleanRequired

Whether the company can share variables with sites it manages. True for an agency.

dataarray of objectsRequired
Fields of each item
maskedstringRequired

The mask shown in place of the value. A value of 16 characters or more also shows its last four.

namestringRequired
shared_with_managedbooleanRequired

Whether an agency shares the variable with the sites it manages for its clients.

tool_credentialstring or nullRequired

A sentence saying the build tool named never reads this variable, when the name is one a build tool reads its own credentials from. Null otherwise.

updated_atstring or nullRequired
updated_bystring or nullRequired

The name of the person who last changed it.

used_byobjectRequired
Fields
environmentsintegerRequired

Environments the variable reaches.

not_set_onintegerRequired

Environments whose commands read the variable and do not receive it.

overridden_onintegerRequired

Environments that have a variable of their own with this name.

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.
403forbiddenThe person is not allowed to do this.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X DELETE https://manage.corefinity.com/api/corestack/companies/1204/deploy-variables/SLACK_URL \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "can_share": true,
  "data": [
    {
      "masked": "••••••••.com",
      "name": "API_URL",
      "shared_with_managed": true,
      "tool_credential": null,
      "updated_at": "2026-11-09T10:42:07Z",
      "updated_by": "Maya Okafor",
      "used_by": {
        "environments": 1,
        "not_set_on": 0,
        "overridden_on": 0
      }
    },
    {
      "masked": "••••••••cret",
      "name": "SLACK_URL",
      "shared_with_managed": false,
      "tool_credential": null,
      "updated_at": "2026-11-09T10:42:07Z",
      "updated_by": "Maya Okafor",
      "used_by": {
        "environments": 1,
        "not_set_on": 0,
        "overridden_on": 0
      }
    }
  ]
}
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