delete-mail-attachment
Remove email attachments from Microsoft 365 messages to reduce mailbox size and manage storage. Specify message and attachment IDs to delete specific files from Outlook emails.
Instructions
Delete navigation property attachments for me
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": {
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "delete-mail-attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| If-Match | No | ETag | |
| messageId | Yes | Path parameter: messageId | |
| attachmentId | Yes | Path parameter: attachmentId | |
| includeHeaders | No | Include response headers (including ETag) in the response metadata | |
| excludeResponse | No | Exclude the full response body and only return success or failure indication |