Skip to main content

Kutools for Office β€” One Suite. Five Tools. Get More Done.

How to remove all attachments from email in Outlook?

Author Kelly Last modified

Normally when you are previewing an email, you can delete an attachment with right clicking and select the Remove Attachment item. Sometimes there may be many attachments in an email message, and it will be tedious to remove them one by one. Here we arrange you with two easy tricks to remove all attachments in one email, and remove all attachments from multiple emails as well in Outlook.

Manually remove all attachments in one email message in Outlook
Remove all attachments from multiple email messages in Outlook with VBA code
Easily remove all attachments from one or multiple emails with Kutools for Outlook


Manually remove all attachments in one email message in Outlook

It is easy to remove all attachments in a selected email messages with the Remove Attachments feature in Outlook.

Step 1: Select the email message whose attachments you will remove later.

Step 2: Click one of attachments in the Reading Pane to activate the Attachments Tools.

doc-save-attachments-1

Step 3: Click the Select All button in the Selection group on the Attachments tab.

doc-save-attachments-2

This step will enable you to select all attachments in this selected email messages at once.

Step 4: Click the Remove Attachment button in the Actions group on the Attachments tab.

Step 5: In the warning dialog box, click the Remove Attachments button.

doc-save-attachments-3

Then all attachments in this selected email messages are deleted as soon as possible.

Note: The Remove Attachments feature works fine in Outlook 2010 and the later version, but not in Outlook 2007.


Easily remove all attachments from multiple selected emails in Outlook:

With the Detach All attachments utility of Kutools for Excel, you can easily remove all attachments from multiple selected emails as the below demo shown. (The attachments will be saved into a specified folder) Download and try now! (30-day free trail)


Remove all attachments from multiple email messages in Outlook with VBA code

If you want to remove all attachments from multiple email messages in Microsoft Outlook, the following method will help you do it easily. We recommend you enable all macros in your Microsoft Outlook firstly.

Step 1: Go to the folder of My Document, create a new folder, and name it as OLAttachments

Step 2: Select multiple email messages whose attachments you will remove later.

Note: You can select inconsecutive email messages with holding the Ctrl key and clicking.

You can select consecutive email messages with holding the Shift key and clicking.

Step 3: Open the VBA Editor with pressing the Alt key and F11 key at the same time.

Step 4: Expand the Project1 > Microsoft Outlook Objects in the left bar, and then double click the ThisOutlookSession to open it in the Editor. See following screen shot:

doc-delete-attachments-4

Step 5: Copy and paste the following VBA code in the editing pane.

Public Sub ReplaceAttachmentsToLink()
Dim objApp As Outlook.Application
Dim aMail As Outlook.MailItem 'Object
Dim oAttachments As Outlook.Attachments
Dim oSelection As Outlook.Selection
Dim i As Long
Dim iCount As Long
Dim sFile As String
Dim sFolderPath As String
Dim sDeletedFiles As String
 
    ' Get the path to your My Documents folder
    sFolderPath = CreateObject("WScript.Shell").SpecialFolders(16)
    On Error Resume Next
 
    ' Instantiate an Outlook Application object.
    Set objApp = CreateObject("Outlook.Application")
 
    ' Get the collection of selected objects.
    Set oSelection = objApp.ActiveExplorer.Selection
 
    ' Set the Attachment folder.
    sFolderPath = sFolderPath & "\OLAttachments"
 
    
    ' Check each selected item for attachments. If attachments exist,
    ' save them to the Temp folder and strip them from the item.
    For Each aMail In oSelection
 
    ' This code only strips attachments from mail items.
    ' If aMail.class=olMail Then
    ' Get the Attachments collection of the item.
    Set oAttachments = aMail.Attachments
    iCount = oAttachments.Count
     
       
    If iCount > 0 Then
     
        ' We need to use a count down loop for removing items
        ' from a collection. Otherwise, the loop counter gets
        ' confused and only every other item is removed.
         
        For i = iCount To 1 Step -1
         
            ' Save attachment before deleting from item.
            ' Get the file name.
            sFile = oAttachments.Item(i).FileName
             
            ' Combine with the path to the Temp folder.
            sFile = sFolderPath & "\" & sFile
             
            ' Save the attachment as a file.
            oAttachments.Item(i).SaveAsFile sFile
             
            ' Delete the attachment.
            oAttachments.Item(i).Delete
             
            'write the save as path to a string to add to the message
            'check for html and use html tags in link
            If aMail.BodyFormat <> olFormatHTML Then
                sDeletedFiles = sDeletedFiles & vbCrLf & "<file://" & sFile & ">"
            Else
                sDeletedFiles = sDeletedFiles & "<br>" & "<a href='file://" & _
                sFile & "'>" & sFile & "</a>"
            End If
             
                         
        Next i
        'End If
             
       ' Adds the filename string to the message body and save it
       ' Check for HTML body
       If aMail.BodyFormat <> olFormatHTML Then
           aMail.Body = aMail.Body & vbCrLf & _
           "The file(s) were saved to " & sDeletedFiles
       Else
           aMail.HTMLBody = aMail.HTMLBody & "<p>" & _
           "The file(s) were saved to " & sDeletedFiles & "</p>"
       End If
       
       aMail.Save
       'sets the attachment path to nothing before it moves on to the next message.
       sDeletedFiles = ""
    
       End If
    Next 'end aMail
     
ExitSub:
 
Set oAttachments = Nothing
Set aMail = Nothing
Set oSelection = Nothing
Set objApp = Nothing
End Sub

Step 6: Press the key of F5 to run this VBA code.

Now all attachments from selected email messages are removed, with leaving hyperlinks to each deleted attachment at the bottom of all selected email messages.

doc-delete-attachments-7


Easily remove all attachments from one or multiple emails with Kutools for Outlook

The Detach All attachments utility of Kutools for Outlook can quickly remove all attachments from one or multiple selected emails in Outlook. Please do as follows.

Kutools for Outlook : with more than 100 handy Outlook add-ins, free to try with no limitation in 30 days.

1. Select one or multiple email messages with the attachments you want to remove, then click Kutools > Attachment ToolsDetach All. See screenshot:

doc-save-attachments-multiple-emails6

2. In the Detach Settings dialog box, please configure as follows.

  • 2.1 Click the Browse button to select a folder to save all deleted attachments.
  • 2.2 By default, the Detach attachment(s) in below style box is checked, please choose an option to save the attachments into different folders based on emails as you need.
  • 2.3 Click the OK button. See screenshot:

doc-save-attachments-multiple-emails7

Notes:
1. If you want to save all attachments into the same folder, please uncheck the Create subfolders in the following style box.
2. After removing attachments, the attachment icon will disappear from the email of the mailing list. You can check the Attachment icon is still remained in the emails box to always keep it.
2. Besides removing all attachments from selected emails, you can remove attachments by specific conditions only. For example, you only want to remove the attachments which the size is more than 500KB, please click the Advanced options button to expand the conditions, and then configure as the below screebshot shown.

doc-save-attachments-multiple-emails08

3. Click the Yes button in the Detach All dialog box.

doc-save-attachments-multiple-emails9

4. Then a Kutools for Outlook dialog box will pop up to tell you how many attachments are deleted. Please click the OK button. 

doc-save-attachments-multiple-emails10

Now all attachments are removed immediately with only the hyperlinks leaving in selected emails. You can click the hyperlink to open the corresponding attachment as you need.

  If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


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 ProBatch 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!

Instantly unlock Kutools for Outlook with a single click. Don't wait, download now and boost your efficiency!

kutools for outlook features1 kutools for outlook features2

πŸš€ One-Click Download β€” Get All Office Add-ins

Strongly Recommended: Kutools for Office (5-in-1)

One click to download five installers at once β€” Kutools for Excel, Outlook, Word, PowerPoint and Office Tab Pro. Click to download now!

  • βœ… One-click convenience: Download all five setup packages in a single action.
  • πŸš€ Ready for any Office task: Install the add-ins you need, when you need them.
  • 🧰 Included: Kutools for Excel / Kutools for Outlook / Kutools for Word / Office Tab Pro / Kutools for PowerPoint