Delete a sandbox
Deletes a sandbox by name. If sandboxes are currently running, they will be stopped first. This operation deletes all sandbox entities with the given name and the named sandbox metadata.
Path parameters
The sandbox name to delete.
The sandbox name to delete.
Query parameters
The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context.
The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context.
When true, snapshots of the deleted sandbox that are not referenced by any other sandbox are also deleted asynchronously. Defaults to false.
When true, snapshots of the deleted sandbox that are not referenced by any other sandbox are also deleted asynchronously. Defaults to false.
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
Example response
{
"sandbox": {
"name": "my-sandbox",
"status": "running",
"statusUpdatedAt": 1750344501629,
"persistent": true,
"region": "iad1",
"failoverRegions": [
"sfo1",
"cle1"
],
"vcpus": 2,
"memory": 1024,
"runtime": "node22",
"image": "my-repo@sha256:2c4e8f9a1b3d5e7f091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708",
"timeout": 300000,
"snapshotExpiration": 604800000,
"keepLastSnapshots": {
"count": 5,
"expiration": 604800000,
"deleteEvicted": true
},
"totalEgressBytes": 4096,
"totalIngressBytes": 2048,
"totalActiveCpuDurationMs": 5000,
"totalDurationMs": 60000,
"cwd": "/vercel/sandbox",
"tags": {
"team": "hive",
"user": "bob"
},
"createdAt": 1750344501629,
"updatedAt": 1750344501629,
"expiresAt": 1750344801629
}
}