orca cleanup¶
Delete unused / dangling resources (orca-exclusive).
The reference below is generated from the live CLI by mkdocs-click. It
always reflects the version installed.
orca cleanup¶
Find orphaned resources — unused IPs, detached volumes, broken stacks, etc.
Detects the following by default: floating-ip — not associated with any port volume — detached & available, or in error state snapshot — in error state; or older than --older-than days port — no device attached security-group — non-default, not used by any server server — in ERROR state router — no external gateway and no attached interfaces stack — in a failed/rollback state (requires Heat) loadbalancer — in ERROR state (requires Octavia)
By default only reports findings. Use --delete to clean up.
Examples: orca cleanup orca cleanup --older-than 30 orca cleanup --skip stack --skip loadbalancer orca cleanup --delete --yes orca cleanup --older-than 14 --delete --yes
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--delete |
boolean | Actually delete the detected orphaned resources. | False |
--older-than |
integer | Flag volumes and snapshots older than N days (implies age check). | None |
--skip |
choice (floating-ip | volume | snapshot | port | security-group | server | router | stack | loadbalancer) |
Resource type to skip (repeatable). | Sentinel.UNSET |
--yes, -y |
boolean | Skip confirmation when deleting. | False |
--help |
boolean | Show this message and exit. | False |