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

# Delete folder

> Deletes a folder and its empty subfolders. Refused when any contract is filed in the folder or one of its subfolders. Requires an admin key owner.



## OpenAPI

````yaml /openapi-2025-01-29.alpha.json delete /folders/{id}
openapi: 3.0.0
info:
  title: Tomorro API
  description: >
    The Tomorro Public API enables you to programmatically manage contracts,
    members, and counterparties. Build powerful integrations that automate your
    contract management workflows.


    ## API Version: 2025-01-29.alpha


    This documentation is for API version `2025-01-29.alpha`.


    ### Using this version

    ```

    curl -X GET https://api.tomorro.com/members \
      -H "x-api-key: YOUR_API_KEY" \
      -H "tomorro-version: 2025-01-29.alpha"
    ```
  version: 2025-01-29.alpha
  contact: {}
servers:
  - url: https://api.tomorro.com/v2
    description: Production
  - url: https://api.demo.tomorro.com/v2
    description: Demo
  - url: http://localhost:3015
    description: Local Development
security: []
tags: []
paths:
  /folders/{id}:
    delete:
      tags:
        - Folders
      summary: Delete folder
      description: >-
        Deletes a folder and its empty subfolders. Refused when any contract is
        filed in the folder or one of its subfolders. Requires an admin key
        owner.
      operationId: FoldersController_deleteFolder
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the folder
          schema:
            example: 3f2a1c9e-8b7d-4e6f-9a0b-1c2d3e4f5a6b
            type: string
      responses:
        '204':
          description: Folder deleted
        '400':
          description: >-
            The folder or one of its subfolders still contains contracts
            (`FolderIsNotEmpty`)
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: Forbidden - Insufficient permissions
        '404':
          description: Folder not found or not accessible to the API key owner
        '429':
          description: Too Many Requests - Rate limit exceeded
      security:
        - X-API-KEY: []
components:
  securitySchemes:
    X-API-KEY:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Get your key at
        https://app.tomorro.com/settings/integrations?integration=api-key

````

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