> ## 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 Owner Checkpoints Endpoint

> Delete one page of the account's matching checkpoints.

Each deletion behaves like ``DELETE /checkpoints/{id}``, and the active
tip of a running sandbox is reported as CONFLICT and kept. Only the
caller's own checkpoints are deleted unless a team admin passes another
``user_id`` or ``all_users``. Repeat with ``next_cursor``
until it is null.



## OpenAPI

````yaml https://api.primeintellect.ai/api/v1/sandbox/openapi.json delete /api/v1/sandbox/checkpoints
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/sandbox/checkpoints:
    delete:
      tags:
        - Sandbox Checkpoints
      summary: Delete Owner Checkpoints Endpoint
      description: |-
        Delete one page of the account's matching checkpoints.

        Each deletion behaves like ``DELETE /checkpoints/{id}``, and the active
        tip of a running sandbox is reported as CONFLICT and kept. Only the
        caller's own checkpoints are deleted unless a team admin passes another
        ``user_id`` or ``all_users``. Repeat with ``next_cursor``
        until it is null.
      operationId: delete_owner_checkpoints_endpoint_api_v1_sandbox_checkpoints_delete
      parameters:
        - name: team_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Delete this team's checkpoints instead of the caller's
            title: Team Id
          description: Delete this team's checkpoints instead of the caller's
        - name: sandbox_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only this sandbox's
            title: Sandbox Id
          description: Only this sandbox's
        - name: user_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Only checkpoints this user created (default: the caller); another
              user needs team_id and team admin
            title: User Id
          description: >-
            Only checkpoints this user created (default: the caller); another
            user needs team_id and team admin
        - name: all_users
          in: query
          required: false
          schema:
            type: boolean
            description: Every team member's checkpoints; needs team_id and team admin
            default: false
            title: All Users
          description: Every team member's checkpoints; needs team_id and team admin
        - name: labels
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Only checkpoints of sandboxes with ALL these labels
            title: Labels
          description: Only checkpoints of sandboxes with ALL these labels
        - name: state
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  enum:
                    - DURABLE
                    - FAILED
                  type: string
              - type: 'null'
            description: Only these states (default both)
            title: State
          description: Only these states (default both)
        - name: created_before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: Only checkpoints created before this time
            title: Created Before
          description: Only checkpoints created before this time
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 100
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: next_cursor of the last call
            title: Cursor
          description: next_cursor of the last call
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCheckpointsPageResponse'
        '401':
          description: Authorization failed
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DeleteCheckpointsPageResponse:
      properties:
        deleted:
          items:
            type: string
          type: array
          title: Deleted
        errors:
          items:
            $ref: '#/components/schemas/CheckpointDeleteError'
          type: array
          title: Errors
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      required:
        - deleted
        - errors
      title: DeleteCheckpointsPageResponse
    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

````