Declaw icon

Declaw

Run code securely in Firecracker microVM sandboxes — create sandboxes, execute commands, manage files

Snapshot → Delete

AI-generated

Summary

Deletes a single snapshot belonging to a Declaw sandbox by sending a DELETE request to the Declaw API.

Inputs

  • Sandbox ID (required) — ID of the sandbox that owns the snapshot (e.g. sbx-a1b2c3d4). Used in the request path.
  • Snapshot ID (required) — ID of the snapshot to delete (e.g. snap-a1b2c3d4). Obtain it from the Snapshot Create or List operations.

Output shape

One output item per input item containing the JSON body returned by the Declaw API for the DELETE call.

The source doesn't define the response body, so its exact fields depend on the API. If the API returns an empty body, the item may be empty. With Continue On Fail enabled, a failed item yields {error: message} instead of stopping the workflow. Otherwise the node throws a NodeApiError.

Examples

Example 1: Remove an outdated snapshot after creating a newer one

Resource: Snapshot, Operation: Delete, Sandbox ID: {{$json.sandbox_id}}, Snapshot ID: snap-a1b2c3d4

Example 2: Clean up all snapshots of a sandbox

Run Snapshot > List, then feed each result into Snapshot > Delete with Sandbox ID and Snapshot ID set by expressions from the incoming item.

Links

Discussion