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

# Delete Dataset Drift Snapshot Route



## OpenAPI

````yaml /api-reference/openapi.json delete /api/datasets/{dataset_id}/drift/snapshots
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
tags:
  - name: Authentication
  - name: Single sign-on
  - name: Social sign-in
  - name: SCIM provisioning
  - name: Projects
  - name: Datasets
  - name: Uploads and imports
  - name: Scans
  - name: Schedules
  - name: Healing
  - name: RAG corpora
  - name: Custom rules
  - name: Playground
  - name: Search and activity
  - name: Apps
  - name: Devices and agents
  - name: Discovery
  - name: DLP policy
  - name: DLP installation
  - name: Compliance
  - name: Audit trail
  - name: Reports
  - name: Export templates
  - name: Workspaces
  - name: Users
  - name: Invitations
  - name: API keys
  - name: Settings
  - name: Directory sync
  - name: Integrations
  - name: Pending actions
  - name: License
  - name: Onboarding
  - name: Support
  - name: Platform operations
  - name: Webhooks
paths:
  /api/datasets/{dataset_id}/drift/snapshots:
    delete:
      tags:
        - Datasets
      summary: Delete Dataset Drift Snapshot Route
      operationId: >-
        delete_dataset_drift_snapshot_route_api_datasets__dataset_id__drift_snapshots_delete
      parameters:
        - name: dataset_id
          in: path
          required: true
          schema:
            type: string
            title: Dataset Id
        - name: created_at
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            title: Created At
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataDriftResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DataDriftResponse:
      properties:
        dataset_id:
          type: string
          title: Dataset Id
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        current_snapshot:
          anyOf:
            - $ref: '#/components/schemas/DataDriftSnapshot'
            - type: 'null'
        previous_snapshot:
          anyOf:
            - $ref: '#/components/schemas/DataDriftSnapshot'
            - type: 'null'
        metrics:
          anyOf:
            - $ref: '#/components/schemas/DataDriftMetrics'
            - type: 'null'
        history:
          items:
            $ref: '#/components/schemas/DataDriftEvent'
          type: array
          title: History
      type: object
      required:
        - dataset_id
      title: DataDriftResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DataDriftSnapshot:
      properties:
        captured_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Captured At
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        valid_images:
          anyOf:
            - type: integer
            - type: 'null'
          title: Valid Images
        invalid_images:
          anyOf:
            - type: integer
            - type: 'null'
          title: Invalid Images
        class_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Class Count
        classes:
          items:
            type: string
          type: array
          title: Classes
        class_distribution:
          additionalProperties:
            type: integer
          type: object
          title: Class Distribution
        dataset_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Dataset Type
      type: object
      title: DataDriftSnapshot
    DataDriftMetrics:
      properties:
        valid_images_delta:
          type: integer
          title: Valid Images Delta
        valid_images_pct_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Valid Images Pct Change
        invalid_images_delta:
          type: integer
          title: Invalid Images Delta
        invalid_images_pct_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Invalid Images Pct Change
        class_count_delta:
          type: integer
          title: Class Count Delta
        class_count_pct_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Class Count Pct Change
        size_bytes_delta:
          type: integer
          title: Size Bytes Delta
        size_bytes_pct_change:
          anyOf:
            - type: number
            - type: 'null'
          title: Size Bytes Pct Change
        added_classes:
          items:
            type: string
          type: array
          title: Added Classes
        removed_classes:
          items:
            type: string
          type: array
          title: Removed Classes
        class_distribution_drift:
          anyOf:
            - type: number
            - type: 'null'
          title: Class Distribution Drift
        class_distribution_delta:
          additionalProperties:
            type: integer
          type: object
          title: Class Distribution Delta
        dataset_type_changed:
          type: boolean
          title: Dataset Type Changed
          default: false
        label_set_similarity:
          anyOf:
            - type: number
            - type: 'null'
          title: Label Set Similarity
        label_set_drift:
          anyOf:
            - type: number
            - type: 'null'
          title: Label Set Drift
        drift_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Drift Score
        signal_scores:
          additionalProperties:
            type: number
          type: object
          title: Signal Scores
        dominant_signal:
          anyOf:
            - type: string
            - type: 'null'
          title: Dominant Signal
        signal_reasons:
          items:
            type: string
          type: array
          title: Signal Reasons
        advanced_metrics:
          additionalProperties: true
          type: object
          title: Advanced Metrics
      type: object
      required:
        - valid_images_delta
        - invalid_images_delta
        - class_count_delta
        - size_bytes_delta
      title: DataDriftMetrics
    DataDriftEvent:
      properties:
        action_type:
          type: string
          title: Action Type
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        actor:
          anyOf:
            - type: string
            - type: 'null'
          title: Actor
        metrics:
          anyOf:
            - $ref: '#/components/schemas/DataDriftMetrics'
            - type: 'null'
        snapshot:
          anyOf:
            - $ref: '#/components/schemas/DataDriftSnapshot'
            - type: 'null'
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
      type: object
      required:
        - action_type
      title: DataDriftEvent
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.