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

# Delete a sandbox document

> Deletes a library entry. Refused while any scenario still references it, whether through a payload `document_id` or a document-upload scenario selecting on the filename.



## OpenAPI

````yaml DELETE /v1/sandbox/documents/{document_id}/
openapi: 3.0.1
info:
  title: Truv API
  description: Truv API Documentation
  termsOfService: https://www.truv.com/legal/terms-of-use
  contact:
    email: support@truv.com
  version: v1
servers:
  - url: https://prod.truv.com
security:
  - ClientID: []
    AccessKey: []
tags:
  - name: Users
  - name: Bridge Token
  - name: Companies and Data Providers
  - name: Key Management
  - name: Account Links
  - name: Data Refresh
  - name: Customization Templates
  - name: Webhooks
  - name: Orders
  - name: Tasks
  - name: VOIE Reports
  - name: VOA Reports
  - name: Income Insights Reports
  - name: DDS Reports
  - name: Employment
  - name: Identity
  - name: Benefit Letters
  - name: Shifts
  - name: Pay Statements
  - name: Tax Documents
  - name: Parsed Documents
  - name: Reports
  - name: Uploaded Documents
  - name: Bank Accounts
  - name: Bank Statements
  - name: Deposit Switch Reports
  - name: Insurance Reports
  - name: Income Report
  - name: Scoring Attributes
  - name: Accounts
  - name: Transactions
  - name: Recurring Transactions
  - name: Document Collections
  - name: Sandbox
paths:
  /v1/sandbox/documents/{document_id}/:
    parameters:
      - name: document_id
        in: path
        required: true
        schema:
          type: string
        example: 3f1c8a90b7d2416e9a5c0e4f2b8d6a17
    delete:
      tags:
        - Sandbox
      summary: Delete a sandbox document
      description: >-
        Deletes a library entry. Refused while any scenario still references it,
        whether through a payload `document_id` or a document-upload scenario
        selecting on the filename.
      operationId: v1_sandbox_documents_delete
      responses:
        '204':
          description: Document deleted
          content: {}
        '401':
          description: HTTP 401 Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401'
        '403':
          description: The key is not a sandbox key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxError403'
        '404':
          description: HTTP 404 Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorNotFound'
        '409':
          description: A scenario still references this entry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxError409'
components:
  schemas:
    Error401:
      description: ''
      type: object
      properties:
        error:
          description: ''
          type: object
          properties:
            code:
              description: ''
              type: string
              example: authentication_failed
            message:
              description: ''
              type: string
              example: No such token
    SandboxError403:
      description: The request authenticated with a key that is not a sandbox key.
      type: object
      properties:
        error:
          description: ''
          type: object
          properties:
            code:
              description: ''
              type: string
              enum:
                - env_not_sandbox
              example: env_not_sandbox
            message:
              description: ''
              type: string
              example: >-
                Sandbox configuration requires a sandbox key; this key is
                'prod'.
    ErrorNotFound:
      description: ''
      type: object
      properties:
        error:
          description: ''
          type: object
          properties:
            code:
              description: ''
              type: string
              example: not_found
            message:
              description: ''
              type: string
              example: Requested object not found.
    SandboxError409:
      description: >-
        The resource cannot be deleted or renamed while something still
        references it.
      type: object
      properties:
        error:
          description: ''
          type: object
          properties:
            code:
              description: ''
              type: string
              enum:
                - resource_in_use
              example: resource_in_use
            message:
              description: ''
              type: string
              example: >-
                Document 'acme-w2-2025.pdf' is still referenced by: Acme -
                salaried, biweekly.
  securitySchemes:
    ClientID:
      type: apiKey
      description: Client ID
      name: X-Access-Client-Id
      in: header
    AccessKey:
      type: apiKey
      description: Client Access Key
      name: X-Access-Secret
      in: header

````

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