---
title: "Delete an empty folder"
method: DELETE
path: "/v1/workspaces/{workspace_id}/folders/{folder_id}"
tags: ["Folders"]
---

# Delete an empty folder

`DELETE /v1/workspaces/{workspace_id}/folders/{folder_id}`

## Request

- Base URL: `https://api.stacksync.com`
- URL: `https://api.stacksync.com/v1/workspaces/{workspace_id}/folders/{folder_id}`
- Auth: HTTP bearer

A folder that still holds sub-folders or resources is refused with 409: move or delete them first. Answers the deleted folder. With validate_only, the same checks run and 204 answers, nothing is deleted.

## Path parameters

- `workspace_id` integer, required
- `folder_id` string, uuid, required

## Query parameters

- `region` 'besg' | 'usnv', required
- `validate_only` boolean: Run every check of the write and answer 204 without writing: a refused write answers the error the write would

## Response `200`

OK

- Folder: A folder of the workspace
  - `folder_id` string, required
  - `folder_name` string, required
  - `folder_resource_id` string, required
  - `parent_folder_id` string, nullable, required: The folder it is in; None at the root
  - `region` 'besg' | 'usnv', required

## Other responses

- `204`: No Content
- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

---

[API](https://skmtc.dev/stacksync/apis/stacksync-api.md) - [All operations](https://skmtc.dev/stacksync/apis/stacksync-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stacksync/apis/stacksync-api/revisions/21f4ba4b214e?raw)
