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.

Implement deleteSandbox API call and log

+18 -1
+18 -1
apps/cli/src/cmd/rm.ts
··· 1 - async function deleteSandbox(id: string) {} 1 + import consola from "consola"; 2 + import { client } from "../client"; 3 + import { env } from "../lib/env"; 4 + import getAccessToken from "../lib/getAccessToken"; 5 + 6 + async function deleteSandbox(id: string) { 7 + const token = await getAccessToken(); 8 + client.post("/xrpc/io.pocketenv.sandbox.deleteSandbox", undefined, { 9 + params: { 10 + id, 11 + }, 12 + headers: { 13 + Authorization: `Bearer ${env.POCKETENV_TOKEN || token}`, 14 + }, 15 + }); 16 + 17 + consola.success("Sandbox deleted successfully"); 18 + } 2 19 3 20 export default deleteSandbox;