Delete an organization
delete_organizationRemove an organization from Woodpecker along with its secrets, registries, and agents. Requires admin rights and a confirmation token; repositories and forge remain untouched.
Instructions
Removes an organization from Woodpecker together with its org-level secrets, registries and agents. Admin only. It does not touch the forge, and it does not delete the repositories — but anything of theirs that relied on an org-level secret stops working. Two-step.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"org_id": "<org_id>"
},
"name": "delete_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | Yes | Numeric organization id, as returned by list_organizations or lookup_organization. | |
| 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. |