> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete folder

> Delete a media library folder

## Delete folder

Deletes the folder. Depending on database rules, **nested folders and media** tied to this folder may be removed as well (cascade). Ensure nothing important remains in the folder.

### Request

<ParamField path="folder_id" type="integer" required>
  The id of the folder to delete (same as the **`id`** field on the folder)
</ParamField>

Requires the **`posts`** ability.

<RequestExample>
  ```bash theme={null}
  curl -X DELETE "https://postsyncer.com/api/v1/folders/42" \
    -H "Authorization: Bearer YOUR_API_TOKEN"
  ```
</RequestExample>

### Response

<ResponseField name="message" type="string">
  Success message
</ResponseField>
