Skip to main content
DELETE
/
api
/
sandboxes
cURL
curl --request DELETE \
  --url https://recoup-api.vercel.app/api/sandboxes \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "status": "success",
  "deleted_snapshot": {
    "account_id": "550e8400-e29b-41d4-a716-446655440000",
    "snapshot_id": "snap_abc123def456",
    "expires_at": "2027-01-01T00:00:00.000Z",
    "github_repo": "https://github.com/org/repo",
    "created_at": "2025-01-01T00:00:00.000Z"
  },
  "error": "<string>"
}

Body

application/json

Optional account targeting parameters

account_id
string<uuid>

UUID of the account to delete the sandbox for. Only applicable when the authenticated account has access to multiple accounts via organization membership. If not provided, deletes the sandbox for the API key's own account.

Response

Sandbox deleted successfully

status
enum<string>
required

Status of the delete operation

Available options:
success,
error
deleted_snapshot
object

The snapshot record that was deleted. Null if no snapshot existed for the account.

error
string

Error message (only present if status is error)