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

# Delete folder

> Delete a folder. **No test is deleted**: the folder's subfolders move up to its own parent and its tests become unfiled, and the response says which. To delete the tests too, call `DELETE /tests` with their ids first.



## OpenAPI

````yaml /openapi.json delete /tests/folders
openapi: 3.0.2
info:
  title: MobileBoost API
  version: 1.0.0
servers:
  - url: https://api.mobileboost.io
security:
  - BearerAuth: []
paths:
  /tests/folders:
    delete:
      summary: Delete folder
      description: >-
        Delete a folder. **No test is deleted**: the folder's subfolders move up
        to its own parent and its tests become unfiled, and the response says
        which. To delete the tests too, call `DELETE /tests` with their ids
        first.
      operationId: delete_test_folder
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteFolder'
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  folderId:
                    type: string
                  promotedFolderIds:
                    type: array
                    description: Subfolders that moved up to the deleted folder's parent.
                    items:
                      type: string
                  unfiledTestIds:
                    type: array
                    description: Tests that were in the folder and are now in no folder.
                    items:
                      type: string
              example:
                message: >-
                  Folder 'Checkout' was deleted. 1 subfolder(s) moved up, 3
                  test(s) unfiled. No test was deleted.
                folderId: kFq2b8s1TzYwm0Xd4eNc
                promotedFolderIds:
                  - p7Rw3nVa5LcQe1Zt9uHb
                unfiledTestIds:
                  - xMIt964RUpAB95b6YI2F
        '404':
          description: No such folder in this organisation.
components:
  schemas:
    DeleteFolder:
      title: DeleteFolder
      required:
        - folderId
      type: object
      properties:
        folderId:
          title: Folder ID
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````