Delete Attachment

Delete a specific attachment from an Outlook Mail API message.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/naftiko/microsoft-outlook-sandbox --skill delete-attachment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Delete Attachment
Source: https://github.com/naftiko/microsoft-outlook-sandbox/tree/main/skills/delete-attachment
Command: npx skills add https://github.com/naftiko/microsoft-outlook-sandbox --skill delete-attachment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows users to remove specific attachments from their emails, helping to manage mailbox storage and ensure only relevant files are associated with a message.

Core Features & Use Cases

  • Attachment Removal: Delete individual attachments from an email message.
  • Use Case: You've attached a draft document to an email but later decide to remove it before sending. This Skill can delete that specific attachment using its ID.

Quick Start

Use the delete attachment skill to remove attachment with id 'AAMkAGI1AAABEgAQAA==' from message with id 'AAMkAGI1AAAGB1rUAAA='.

Frequently Asked Questions about Delete Attachment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete an attachment from an Outlook email?

To delete an attachment from an Outlook email, you need the specific message-id and attachment-id. This Skill targets those path parameters via the Microsoft Outlook Mail API to remove the unwanted file from your mailbox.

What do I need to remove a file from a Microsoft Outlook mail message?

Removing a file from a Microsoft Outlook mail message requires the unique message-id and the attachment-id. These identifiers allow the API to precisely target and delete the specific attachment from the email.

Can I manage mailbox storage by removing unwanted email attachments?

Yes, you can manage mailbox storage by removing unwanted email attachments. This Skill deletes specific files associated with a message, ensuring only relevant content remains and freeing up space in the signed-in user's mailbox.

Does deleting an attachment remove the entire email from my mailbox?

Deleting an attachment does not remove the entire email from your mailbox. The Skill specifically targets and removes only the designated file using its attachment-id, leaving the rest of the email message intact.

How do I find the message-id and attachment-id needed for attachment removal?

Finding the message-id and attachment-id needed for attachment removal requires querying your mailbox data first. These unique identifiers are passed as path parameters to the Outlook Mail API to execute the deletion successfully.