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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"folder_id": "<folder_id>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | ||
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |