Skip to content

Delete a Sandbox

This guide shows how to delete an Agent Sandbox when you no longer need it.

Send a DELETE request to the sandbox endpoint:

Terminal window
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)

⚠️ Data Loss: Deletion is permanent. All data in the sandbox is removed, including persistent storage (/workspace).

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.

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.