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

# Delete Redaction

> Deletes a redaction box from a file's detection data. Associated spans that are no longer referenced by any remaining rects are automatically removed. The response returns the full updated list of redaction boxes.



## OpenAPI

````yaml DELETE /text-detections/file/{fileId}/rect/{id}
openapi: 3.0.1
info:
  title: Indora Labs API
  description: >-
    Comprehensive API for search, ingestion, file ops, redaction, detections,
    audit trail, and case management. All endpoints return strongly-typed JSON
    with explicit field descriptions and examples.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.indoralabs.com
security:
  - apiKeyAuth: []
tags:
  - name: Search
  - name: Uploads
  - name: Files
  - name: Redactions
  - name: Detections
  - name: Cases
  - name: Audit
  - name: Auth
  - name: Embeddings
  - name: Policy
paths:
  /text-detections/file/{fileId}/rect/{id}:
    delete:
      tags:
        - Redactions
      summary: Delete a single redaction box
      description: >-
        Deletes a redaction box from a file's detection data. Associated spans
        that are no longer referenced by any remaining rects are automatically
        removed. The response returns the full updated list of redaction boxes.
      parameters:
        - name: fileId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID of the file whose redaction details will be modified.
        - name: rectId
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the redaction box to delete.
      responses:
        '200':
          description: Redaction box successfully deleted.
          content:
            application/json:
              schema:
                type: array
                description: Full updated list of redaction boxes for the file.
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    page:
                      type: number
                    x:
                      type: number
                    'y':
                      type: number
                    w:
                      type: number
                    h:
                      type: number
                    label:
                      type: string
                    type:
                      type: string
                    reason:
                      type: string
                    spanIds:
                      type: array
                      items:
                        type: string
                    source:
                      type: string
                      enum:
                        - auto
                        - manual
        '401':
          description: Unauthorized.
        '404':
          description: >-
            Returned if no redaction details exist for the file or if the
            specified rect ID does not exist.
        '500':
          description: Internal server error while deleting the redaction box.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````