---
title: "Delete a folder"
method: DELETE
path: "/folders/{folder_id}"
tags: ["Folders"]
---

# Delete a folder

`DELETE /folders/{folder_id}`

Deletes an empty folder. The folder must not contain any templates or subfolders.
Move or delete all contents before attempting to delete the folder.

## Path parameters

- `folder_id` string, required

## Response `200`

folder is empty

- Folder
  - `id` string, nullable, required
  - `name` string, nullable, required
  - `path` string, nullable, required
  - `parent_folder_id` string, nullable, required

## Other responses

- `401` — authentication failed
- `404` — folder doesn't exist
- `422` — folder has contents

---

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