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 with the sandbox ID. The API key needs the sandbox
edit permission on the sandbox cluster’s project.
curl -X DELETE https://api.nirvanalabs.io/v1/sandboxes/{sandbox_id} \ -H "OPEN-SANDBOX-API-KEY: $NIRVANA_API_KEY"The sandbox is removed along with its container, its services and its
ephemeral storage. PVCs are deleted too if they were created with
deleteOnSandboxTermination; otherwise they stay on the sandbox cluster. See
Persistence & Storage.
To delete every sandbox on a cluster at once, delete the sandbox cluster.
Troubleshooting
Section titled “Troubleshooting”Can I recover a deleted sandbox? No. Deletion is permanent.
What if deletion fails? Retry the request. If it keeps failing, contact support.
Next steps
Section titled “Next steps”- Create another sandbox
- Back to the Agent Sandboxes overview