Skip to main content

deleteSnapshot

Agent Runtimes


Agent Runtimes / api/runtimes/snapshots / deleteSnapshot

Function: deleteSnapshot()

deleteSnapshot(token, snapshotId, baseUrl?): Promise<void>

Defined in: src/api/runtimes/snapshots.ts:106

Delete a code sandbox snapshot.

Parameters

token

string

Authentication token

snapshotId

string

The unique identifier of the snapshot to delete

baseUrl?

string = DEFAULT_SERVICE_URLS.RUNTIMES

Base URL for the API (defaults to production Runtimes URL)

Returns

Promise<void>

Promise resolving when deletion is complete

Throws

If authentication token is missing or invalid

Throws

If snapshot ID is missing or invalid