delete_folder
Delete an Exchange mail folder permanently or move it to Deleted Items. Provide the folder ID to remove unwanted folders.
Instructions
Delete a mail folder.
Args: folder_id: The Exchange folder ID to delete (from get_folders). permanent: If True, permanently delete (HardDelete). Otherwise move to Deleted Items. Default False.
Returns: JSON object with success status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | ||
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |