CorefinityCorefinityDocs
Open the Control PanelControl Panel
Enterprise deployments · 15 of 17

Delete an environment's repository

Disconnects the repository from the environment. Deployments already made keep their commit. Your role needs the Manage Deployment Repositories permission.

DELETE/api/environments/{environment}/repositories/{repository}

Path parameters

environmentintegerRequired

The id of a CoreStack Enterprise environment. Not the same number as a site row id. At least 1.

repositoryintegerRequired

The id of a repository of the environment, as GET /environments/{environment}/repositories lists it. Digits only. At least 1.

Returns

204 The repository was removed. No body.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403forbiddenThe person is not allowed to do this.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404noneCheck the id. You see only what your account can reach.
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/environments/1311/repositories/3301 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "message": "Unauthenticated."
}
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