---
title: "Delete folder"
method: DELETE
path: "/tests/folders"
---

# Delete folder

`DELETE /tests/folders`

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.

## Request body

- DeleteFolder
  - `folderId` string, required

## Response `200`

Successful response

- object
  - `message` string
  - `folderId` string
  - `promotedFolderIds` string[] — Subfolders that moved up to the deleted folder's parent.
  - `unfiledTestIds` string[] — Tests that were in the folder and are now in no folder.

## Other responses

- `404` — No such folder in this organisation.

---

[API](https://skmtc.dev/mobileboost/apis/mobileboost-api.md) · [All operations](https://skmtc.dev/mobileboost/apis/mobileboost-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mobileboost/mobileboost-api/revisions/005e59399710/schema)
