---
title: "Detach a folder from a project"
method: DELETE
path: "/projects/{id}/folders/{folderId}"
tags: ["Projects"]
---

# Detach a folder from a project

`DELETE /projects/{id}/folders/{folderId}`

## Request

- Base URL: `https://app.gc.ai/api/external/v1`
- URL: `https://app.gc.ai/api/external/v1/projects/{id}/folders/{folderId}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/gc-ai/apis/gc-ai-external-api/docs/projects/:id/folders/:folderId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove the link between a folder and a project. The folder itself is not deleted; it stays in the organization. Idempotent: detaching a folder that is not attached is a no-op.

Requires write access to the project. Org-scoped keys can detach folders from non-access-controlled projects.

## Path parameters

- `id` string, uuid, required: The project ID
- `folderId` string, uuid, required: The folder ID

## Response `204`

Folder detached (idempotent, repeat calls are no-ops)

## Other responses

- `401`: Missing or malformed API key
- `403`: Invalid API key
- `404`: Project not found or insufficient write access
- `429`: Rate limit exceeded. See [Rate Limits](https://docs.gc.ai/api-reference/concepts/rate-limits) for the tiers, limits, and how to back off.
- `500`: Internal server error
- `503`: Service temporarily unavailable

---

[API](https://skmtc.dev/gc-ai/apis/gc-ai-external-api.md) - [All operations](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/revisions/2bbdfddf7107?raw)
