delete_media_folder
Delete a media folder after user confirmation: removes only empty folders by default, with options to delete contained assets or force-delete assets still referenced.
Instructions
Delete a media folder. By default only empty folders are removed; pass deleteContents to also delete the assets inside, and force to override the refusal that protects assets still in use. Only call after the user explicitly confirmed the deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The folder id to delete | |
| force | No | When true, delete assets that pages, records or branding still reference. The refusal names those files; pass this only after the user has seen them and said to go ahead. Requires the media:force-delete permission. | |
| deleteContents | No | When true, also delete the assets inside the folder. When false (default), deletion is refused if the folder is not empty. |