compute:release-all
Queue teardown of every active lease in your --lease_control_token scope and return at once by default; each machine and its storage are then destroyed in the background, nothing snapshotted. --force --yes widens it to all of your active leases. Returns `request_state` `accepted`, `target_count` and `target_lease_ids`, or, when nothing matched, `request_state` `completed`, `outcome` `no_active_lease` and `target_count` 0. Check progress with compute:status. With a token, --wait adds status polling and returns `wait_result`; it does not make the server teardown synchronous.
Reference for flywheel compute:release-all.
Command Group
Compute & Executions Commands
Summary
Queue teardown of every active lease in your --lease_control_token scope and return at once by default; each machine and its storage are then destroyed in the background, nothing snapshotted. --force --yes widens it to all of your active leases. Returns request_state accepted, target_count and target_lease_ids, or, when nothing matched, request_state completed, outcome no_active_lease and target_count 0. Check progress with compute:status. With a token, --wait adds status polling and returns wait_result; it does not make the server teardown synchronous.
Effect
DESTRUCTIVE: deletes, overwrites or revokes something
Usage
flywheel compute:release-all <FLAGS>Required flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--lease_control_token | string | From compute.lease_control_token in compute:acquire; scopes the leases you control (not an SSH credential). No matching lease: empty status, no_active_lease from release-all, 403 on connect or single release. |
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Select a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Confirm forced compute:release-all --force. Other runtime commands do not read --yes. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Release all (default token scope).
flywheel compute:release-all --lease_control_token tokForce release all releasable leases with explicit token scope.
flywheel compute:release-all --lease_control_token tok --force --yesOutput
Default format: json.
| Field | Type |
|---|---|
updated_at | string |
request_state | string |
outcome (optional) | string | null |
target_count | integer |
target_lease_ids | array<string> |
reason | string |
wait_result (optional) | object |
compute:release
Destroy one lease's machine now. It waits for the provider's teardown to finish before it answers; compute:release-all, by contrast, only queues teardown. Teardown deletes the machine and its storage (the bundled disk and, on Nebius, the separate boot disk), so anything you did not export first is lost; nothing is snapshotted. Returns the lease after teardown; `state` and `error` report unconfirmed teardown. Global --wait does not change that server-side wait: it adds polling of compute:status in the token scope until `released` or `error` (404 also counts as released), returned as `wait_result`.
compute:status
Read managed compute lease status for the current user and --lease_control_token scope. Returns `compute` with `recommended_next_action` (`acquire_new_lease`, `wait_for_release`, `retry_acquire_active_lease`, `wait_for_active_lease`, `use_active_lease` or `release_or_reacquire`), `active_lease_id` and `leases`. Lease rows include ownership flags so you can distinguish user-owned leases from sponsor-visible campaign leases; only rows with `owned_by_current_user` and `connection_allowed_for_current_user` true can be used for connection or reuse. No SSH private key is returned. When checking a grant-backed lease, reuse the same --compute_grant_id passed to compute:acquire.