How to remove specific types of attachments from emails in Outlook?
Managing email attachments in Outlook can be challenging, especially when certain file typesโlike .docx or .pngโclutter your inbox. While Outlook lacks a built-in feature to remove specific attachments from multiple emails at once, there are efficient solutions. You can use VBA scripting to manually delete attachments based on file type, or go with a faster, more user-friendly solution with Kutools for Outlook, which lets you filter and remove attachments in just a few clicks. This guide will walk you through both methods.
Remove a specific type of attachments using VBA (Manual and Technical)
Quickly remove specific types of attachments with Kutools for Outlook ๐ (Fast and User-friendly)
Remove a specific type of attachments using VBA
Step 1: Select multiple emails
In the Mail view, select the emails with attachments you want to remove.
Step 2: Open the VBA editor
Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
Step 3: Add the VBA code
In the VBA window, click Insert > Module to create a new module. Then copy the following VBA script and paste it into the new module:
VBA: Remove a specific type of attachments from emails
Step 4: Enable the Microsoft Scripting Runtime
1. In the VBA editor, click Tools > References.
2. In the References - Project1 dialog box, check the Microsoft Scripting Runtime box and click OK.
Step 5: Run the VBA script
1. Press F5 or click the Run button to execute the code.
2. A prompt box will appear, enter the attachment type you want to remove (e.g., xlsx). Click OK.
Result
The VBA script will remove all attachments matching the specified type from the selected emails.
Limitations of This Method:
- โ Requires VBA knowledge: Not beginner-friendly and may be difficult for non-technical users.
- โ No preview or undo: Once attachments are deleted, they cannot be restored.
- โ Manual execution required: The script must be run every time you need to remove attachments.
- โ Potential for accidental deletion: If you enter the wrong file type, unintended attachments may be removed.
If you frequently need to remove attachments from emails, the Kutools for Outlook method is a far more efficient and user-friendly solution.
๐ Automatically Archive Attachments with Ease!
Managing large volumes of email attachments just got effortless! With Kutools for Outlookโs Auto Detach feature, incoming attachments are automatically saved to a designated folder and replaced with hyperlinks in emails. Say goodbye to manual processes and cluttered inboxesโembrace seamless automation today!

๐ก Benefits You'll Love:
- โ๏ธ Save attachments automatically as they arrive
- โ๏ธ Keep emails clutter-free with hyperlink replacements
- โ๏ธ Fully customizable options to suit your workflow
Quickly remove specific types of attachments with Kutools for Outlook ๐
For a more efficient and user-friendly solution, Kutools for Outlook offers the Detach All feature, allowing you to remove specific file types from multiple emails in just a few clicks. Unlike the VBA method, no coding or manual execution is required.
Unlock ultimate email efficiency with Kutools for Outlook! Access 70 powerful features absolutely free, forever. Download the Free Version Now!
Step 1: Select multiple emails and access the Detach All feature
In the Mail view, select the emails containing the attachments you want to remove. Then click Kutools Plus > Attachment Tools > Detach All.
Step 2: Set detach preferences
- Click the
Browse icon to specify a destination folder for saving the attachments.
- Click Advanced options to expand the dialog.
- In the Filter conditions section, check the Attachment type box. Then enter the file extensions (e.g., .docx; .png) you want to remove in the textbox.
- Click OK to confirm.
Step 3: Confirm the detachment
A Detach All confirmation dialog box will appear. Click Yes to proceed.
Result: What Happens Next?
1. All specified attachments are detached from the selected emails.
2. Attachments are safely stored in the specified folder instead of being permanently deleted. If needed, you can restore them by clicking Kutools Plus > Attachment Tools > Restore All.
3. Each hyperlink in the original email represents a detached file, providing quick access while keeping your inbox organized.
Why Choose This Method?
- โ No technical skills required: Simple, intuitive, and beginner-friendly.
- โ One-click batch processing: Removes attachments from multiple emails at once.
- โ Safe and organized: Unlike VBA, attachments arenโt deleted but saved elsewhere.
- โ Flexible customization: Filter by attachment type, email sender, date range, and more.
Best Office Productivity Tools
Breaking News: Kutools for Outlook Launches Free Version!
Experience the all-new Kutools for Outlook with 100+ incredible features! Click to download now!
๐ค Kutools AI : Uses advanced AI technology to handle emails effortlessly, including replying, summarizing, optimizing, extending, translating, and composing emails.
๐ง Email Automation: Auto Reply (Available for POP and IMAP) / Schedule Send Emails / Auto CC/BCC by Rules When Sending Email / Auto Forward (Advanced Rules) / Auto Add Greeting / Automatically Split Multi-Recipient Emails into Individual Messages ...
๐จ Email Management: Recall Emails / Block Scam Emails by Subjects and Others / Delete Duplicate Emails / Advanced Search / Consolidate Folders ...
๐ Attachments Pro: Batch Save / Batch Detach / Batch Compress / Auto Save / Auto Detach / Auto Compress ...
๐ Interface Magic: ๐More Pretty and Cool Emojis / Remind you when important emails come / Minimize Outlook Instead of Closing ...
๐ One-click Wonders: Reply All with Attachments / Anti-Phishing Emails / ๐Show Sender's Time Zone ...
๐ฉ๐ผโ๐คโ๐ฉ๐ป Contacts & Calendar: Batch Add Contacts From Selected Emails / Split a Contact Group to Individual Groups / Remove Birthday Reminders ...
Use Kutools in your preferred language โ supports English, Spanish, German, French, Chinese, and 40+ others!

