删除 Snapshot
如果 Snapshot 已被删除,调用返回true;如果未找到对应 ID 的 Snapshot,则返回 false。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
true;如果未找到对应 ID 的 Snapshot,则返回 false。
from ppio_sandbox import PPIO
ppio = PPIO()
snapshot_id = "<snapshotID>"
deleted = ppio.sandbox.delete_snapshot(snapshot_id)
print("deleted" if deleted else "not found")
import { PPIO } from 'ppio-sandbox'
const ppio = new PPIO()
const deleted = await ppio.sandbox.deleteSnapshot('<snapshotID>')
console.log(deleted ? 'deleted' : 'not found')
ppio snapshot delete <snapshot_id>