# Remove a folder's rule

> Page: https://docs.plotwork.dev/api/delete-orgs-org-folder-rules. Index of every page: https://docs.plotwork.dev/llms.txt

Removes the rule for the folder in the folder query, so the folder is open again.

`DELETE /orgs/{org}/folder-rules`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Remove a folder's rule. |
| What does it take? | `org` in the path, and `folder` in the query string. |
| What does it return? | Status 204 with no body. |
| What can go wrong? | `400` the folder path breaks the rules (orgs.rule_invalid; details.reason is bad_folder); `401` not signed in; `403` only the owner may (orgs.forbidden), or the request came from an origin that may not make changes; `404` no such organisation, or the caller is not a member of it; `429` too many requests; `503` organisations are not set up on this server. Every failure uses the one error envelope. |

## What it does

Removes the rule for the folder in the folder query, so the folder is open again. A folder with no rule answers the same, 204. Only the owner may.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `folder` | `string` | yes | The folder the rule restricts, with every folder inside it: names from the outermost in, joined with a slash, with no slash at either end. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 204 | The rule is gone, or there was none. | none |
| 400 | The folder path breaks the rules (orgs.rule_invalid; details.reason is bad_folder). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | Only the owner may (orgs.forbidden), or the request came from an origin that may not make changes. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation, or the caller is not a member of it. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Organisations are not set up on this server. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
