Delete a computer
delete_computerPermanently destroy a computer and its disk; this action is irreversible. Optionally purge snapshots by passing a fingerprint from snapshot_holdings.
Instructions
Destroy a computer and its disk. Irreversible. Its snapshots are kept by default and become orphans, which can still be cloned but not restored. To destroy those too, read snapshot_holdings first and pass its fingerprint as expect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expect | No | The fingerprint from snapshot_holdings. The purge is refused unless it still names the same set, so a capture that finished after you looked cannot be swept up in a decision that was never about it. | |
| confirm | Yes | Must be true. This destroys the disk and everything on it. | |
| computer_id | Yes | Required in full, even when one is selected — a delete is not a call to infer a target for. | |
| idempotency_key | No | Optional. Omit it on a first attempt: a fresh key is sent for you, and an answer that is lost names it. Pass the key such an answer named to send the SAME call again without it being done twice — the platform answers with the first call's result, or says it is still running. After a 5xx that names no operation_id, send the same call again with the same key: nothing may have been done, and the platform either carries it out (the key was released) or answers idempotency_outcome_unknown. After idempotency_outcome_unknown, or a 5xx that names an operation_id, the key is spent (resending with it answers idempotency_outcome_unknown): read get_computer (and get_operation when the error named an operation_id: succeeded means it happened, running means wait on it, pending alone is no reason to wait), and if the step did not take effect, send the call again with a new key, or none. Keys last 24 hours; the same key with different arguments is refused. | |
| delete_snapshots | No | Also destroy every snapshot of this computer. Requires `expect`. Opt-in because the wrong answer here is unrecoverable: a snapshot kept by mistake costs storage, one destroyed by mistake costs the disk it was the last copy of. |