Documentation Index
Fetch the complete documentation index at: https://mintlify.com/daytonaio/daytona/llms.txt
Use this file to discover all available pages before exploring further.
Permanently deletes a sandbox and all associated resources. This action cannot be undone.
X-Daytona-Organization-ID
Use with JWT to specify the organization ID
Path Parameters
ID or name of the sandbox to delete
Response
Returns the deleted sandbox object with the updated state.
The unique identifier of the sandbox
The organization ID of the sandbox
The snapshot used for the sandbox
The user associated with the sandbox
Environment variables for the sandbox
Whether the sandbox HTTP preview is public
Whether all network access is blocked
The target environment for the sandbox
The CPU quota for the sandbox
The GPU quota for the sandbox
The memory quota for the sandbox in GB
The disk quota for the sandbox in GB
The current state of the sandbox (will be destroying or destroyed)Options: destroying, destroyed
The desired state of the sandbox
The creation timestamp of the sandbox
The last update timestamp of the sandbox
The runner ID of the sandbox
curl -X DELETE https://api.daytona.io/sandbox/sandbox123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Daytona-Organization-ID: your-org-id"
{
"id": "sandbox123",
"organizationId": "org456",
"name": "my-development-sandbox",
"snapshot": "ubuntu-4vcpu-8ram-100gb",
"user": "daytona",
"env": {
"NODE_ENV": "development"
},
"labels": {
"project": "my-app",
"environment": "dev"
},
"public": false,
"networkBlockAll": false,
"target": "us-east-1",
"cpu": 4,
"gpu": 0,
"memory": 8,
"disk": 100,
"state": "destroying",
"desiredState": "destroyed",
"createdAt": "2024-10-01T12:00:00Z",
"updatedAt": "2024-10-01T18:00:00Z",
"runnerId": "runner789"
}
Notes
- This operation is irreversible and will permanently delete the sandbox
- All data stored in the sandbox will be lost unless backed up
- Attached volumes are not automatically deleted and must be managed separately
- The sandbox state will transition to
destroying and eventually to destroyed