the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow deletion by name or id and use record.id

+7 -2
+1 -1
apps/api/src/xrpc/io/pocketenv/sandbox/deleteSandbox.ts
··· 46 46 : ctx.sandbox(); 47 47 48 48 try { 49 - await sandbox.delete(`/v1/sandboxes/${params.id}`, { 49 + await sandbox.delete(`/v1/sandboxes/${record.id}`, { 50 50 headers: { 51 51 Authorization: `Bearer ${await generateJwt(auth?.credentials?.did || "")}`, 52 52 },
+6 -1
apps/cf-sandbox/src/index.ts
··· 396 396 397 397 await c.var.db 398 398 .delete(sandboxes) 399 - .where(eq(sandboxes.id, c.req.param("sandboxId"))) 399 + .where( 400 + or( 401 + eq(sandboxes.id, c.req.param("sandboxId")), 402 + eq(sandboxes.name, c.req.param("sandboxId")), 403 + ), 404 + ) 400 405 .execute(); 401 406 402 407 return c.json({ success: true }, 200);