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 with the sandbox ID. The API key needs the sandbox edit permission on the sandbox cluster’s project.

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

Can I recover a deleted sandbox? No. Deletion is permanent.

What if deletion fails? Retry the request. If it keeps failing, contact support.