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

# Clear the ledger (force re-scan) or delete one entry (force re-process)

> With only `name`, clears the entire ledger for the tap and deletes every staged MinIO object — the next run re-ingests every document from source. With `name` and `uri`, deletes one entry and its staged object so that specific document is re-processed on the next run.



## OpenAPI

````yaml /openapi.yaml delete /api/v1/tap/ledger
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.0.0
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/tap/ledger:
    delete:
      tags:
        - Taps
      summary: Clear the ledger (force re-scan) or delete one entry (force re-process)
      description: >-
        With only `name`, clears the entire ledger for the tap and deletes every
        staged MinIO object — the next run re-ingests every document from
        source. With `name` and `uri`, deletes one entry and its staged object
        so that specific document is re-processed on the next run.
      parameters:
        - name: name
          in: query
          required: true
          schema:
            type: string
        - name: uri
          in: query
          required: false
          schema:
            type: string
          description: Single-entry URI. Omit to clear the whole ledger.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````