Delete a Sandbox
This guide shows how to delete an Agent Sandbox when you no longer need it.
Delete a Sandbox
Section titled “Delete a Sandbox”Send a DELETE request to the sandbox endpoint:
curl -X DELETE {API_ENDPOINT}/sandboxes/{sandbox_id} \ -H "OPEN-SANDBOX-API-KEY: YOUR_API_KEY"The deletion is instant. The sandbox will be removed along with:
- The pod
- Associated services
- Ephemeral storage (
/tmp, etc.) - The PVC (for persistent sandboxes)
Important Notes
Section titled “Important Notes”⚠️ Data Loss: Deletion is permanent. All data in the sandbox is removed, including persistent storage (/workspace).
Before Deletion
Section titled “Before Deletion”If you have a persistent sandbox with important data, back up files from /workspace using the API proxy endpoint before deleting. Once deleted, all data is permanently lost.
Troubleshooting
Section titled “Troubleshooting”Q: Can I recover a deleted sandbox? A: No. Deletion is permanent. Always back up important data before deleting.
Q: What if deletion fails? A: Retry the delete command. If it continues to fail, contact support.