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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | Required. 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. |