opschain admin authz policies detach-rule
Included from Basic tier
Unlinks an authorisation rule from a policy. Only the link is removed — the
rule itself remains, including its links to any other policies. The policy
is addressed by name or id; --rule accepts either the authorisation rule
id or the policy-rule link id (the command resolves whichever it is against
the policy's links).
opschain admin authz policies detach-rule ops-team --rule 0199c2…
detached rule 0199c2… from policy "ops-team"
Flags
| Flag | Meaning |
|---|---|
--rule <rule-id> | Required. The authorisation rule id (or the link id) to unlink. |
Exit codes
- 0 — unlinked.
- 1 — the policy cannot be resolved, the link does not exist, or the server refused.
- 2 — usage. Shared named errors:
opschain docs cli/admin-authz-policies.
Named errors
the policy has no link to rule <rule-id>— exits 1.
See also
opschain docs cli/admin-authz-policies-attach-rule— the inverse.opschain docs cli/admin-authz-rules-delete— removing the rule itself.