Delete a secret
delete_secretDelete a CI secret to stop pipelines from using it. The two-step confirmation avoids accidental removal.
Instructions
Deletes a secret. Any pipeline that reads it starts failing — or worse, keeps running with an empty value. Two-step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Secret name, stored case-sensitively — MY_TOKEN and my_token are two secrets. | |
| scope | Yes | Which level to act on. "repository" needs repo_id, "organization" needs org_id, and "global" is instance-wide and needs neither (admin only). A pipeline sees the repository level first, then the organization, then global. | |
| org_id | No | Required when scope is "organization". | |
| repo_id | No | Required when scope is "repository". | |
| confirm_token | No | Token from a previous call of this tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |