> ## Documentation Index
> Fetch the complete documentation index at: https://docs.primeintellect.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Sandbox Checkpoints Endpoint

> Delete every checkpoint of a sandbox, with per-checkpoint errors.

Each deletion behaves like ``DELETE /checkpoints/{id}`` and is independent:
pending checkpoints and the active tip of a running sandbox are reported as
CONFLICT and kept. Checkpoints already being deleted are skipped.



## OpenAPI

````yaml https://api.primeintellect.ai/api/v1/sandbox/openapi.json delete /api/v1/sandbox/{sandbox_id}/checkpoints
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/sandbox/{sandbox_id}/checkpoints:
    delete:
      tags:
        - Sandbox Checkpoints
      summary: Delete Sandbox Checkpoints Endpoint
      description: >-
        Delete every checkpoint of a sandbox, with per-checkpoint errors.


        Each deletion behaves like ``DELETE /checkpoints/{id}`` and is
        independent:

        pending checkpoints and the active tip of a running sandbox are reported
        as

        CONFLICT and kept. Checkpoints already being deleted are skipped.
      operationId: >-
        delete_sandbox_checkpoints_endpoint_api_v1_sandbox__sandbox_id__checkpoints_delete
      parameters:
        - name: sandbox_id
          in: path
          required: true
          schema:
            type: string
            title: Sandbox Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSandboxCheckpointsResponse'
        '401':
          description: Authorization failed
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DeleteSandboxCheckpointsResponse:
      properties:
        deleted:
          items:
            type: string
          type: array
          title: Deleted
        errors:
          items:
            $ref: '#/components/schemas/CheckpointDeleteError'
          type: array
          title: Errors
      type: object
      required:
        - deleted
        - errors
      title: DeleteSandboxCheckpointsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckpointDeleteError:
      properties:
        checkpoint_id:
          type: string
          title: Checkpoint Id
        code:
          type: string
          enum:
            - NOT_FOUND
            - CONFLICT
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
        - checkpoint_id
        - code
        - message
      title: CheckpointDeleteError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````