---
title: "Delete folders"
method: DELETE
path: "/workspaces/{workspace_id}/projects/{project_id}/folders"
tags: ["Folders"]
---

# Delete folders

`DELETE /workspaces/{workspace_id}/projects/{project_id}/folders`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/folders`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Deletes given folders.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `project_id` integer, required: Project ID of the workspace

## Query parameters

- `ids` string: Filter by multiple folder ids, comma separated
- `check_dependency` boolean: Check for dependency before deleting the folder
- `remove_contents` boolean: Remove folder contents before deleting the folder

## Response `204`

Request fulfilled, nothing follows

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
