CorefinityCorefinityDocs
Open the Control PanelControl Panel
Team · 13 of 13

corestack_team_role_delete

Delete a custom role.

Scope writeAsks you to confirmNo secrets returned
On this page

When to use it

Delete one of your company's custom roles that nobody holds. Ask the person you act for first, then send confirm_name set to the role's name, exactly. This is DELETE /api/roles/{id}/delete.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_team_role_delete with role_id 77. (Delete a custom role.) Tell me what it returned.

Inputs

confirm_namestringRequiredConfirmation

The role's name, exactly. Up to 255 characters.

role_idintegerRequired

The custom role's id from corestack_team_roles_list. At least 1.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_team_role_delete",
  "arguments": {
    "role_id": 77,
    "confirm_name": "Release managers"
  }
}

If it is refused

ReasonWhat to do
confirm_mismatchconfirm_name is not the role's name; nothing was deleted.
in_useSomebody still holds the role; take it from them first.
forbiddenYou may not delete roles (an owner, or the Delete Roles permission, may).
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT