Destroy a release policy
destroy_policyDestroy one of an organization's release policies by name. A change to a policy applies to releases not yet decided. Changing a policy's enforcement or settings never changes a decided evaluation, and a running policy evaluation keeps the checker and enforcement it started with. A running policy evaluation whose checker hasn't started yet uses the current settings. Removing a policy, or changing its checker, cancels its running policy evaluations, so releases that waited only on it go ahead. Confirm with the user first. Past evaluations stay on the releases they evaluated. Destroying a policy that is already gone changes nothing. Requires connecting a Valet account. Requires the Admin role.
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": {
"policy": "<policy>"
},
"name": "destroy_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | The policy's name, as list_policies reports it. | |
| org_name | No | The Valet organization the policy belongs to. Omit to use the organization the account joined first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Name of the Valet organization the call acted in. | |
| kind | Yes | Always policy: the kind of thing this tool destroys. | |
| name | Yes | Name of the release policy destroyed, as passed in policy. | |
| already_gone | No | True when the policy was already gone before the call, so nothing was destroyed. Absent when this call destroyed it. |