• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

The Delete button is disabled in Outlook's Inbox

Slipstick Systems

› Outlook › The Delete button is disabled in Outlook’s Inbox

Last reviewed on May 16, 2022     27 Comments

Several users noticed the Delete button was missing when a message was selected in the Inbox:

I recently switched email accounts and the Delete button is disabled and some of my messages are missing. The Delete key on the keyboard will delete messages, only the Delete button in the Home ribbon and the right-click menu for selected e-mail(s) is disabled.

This is the result of exporting an IMAP data file to a pst file or opening IMAP pst files in Outlook. The folders retain certain IMAP features, one of which is the Delete button doesn't work as expected. (In IMAP, it purges.) To fix it, you need to edit the Inbox folder using MFCMAPI and change the PR_CONTAINER_CLASS to IPF.Note.

For a macro method, see Fix the Outlook Folder Type after Exporting an IMAP Account

  1. Get MFCMAPI . If you have 64 bit office, you need 64 bit MFCMAPI.
  2. Open MFCMAPI, go to Session, Logon
  3. Select your profile
  4. Double-click on the affected data store.
  5. Expand Root - Mailbox
  6. Expand Top of Information Store or IPM_Subtree
  7. Select Inbox
  8. Look for PR_CONTAINER_CLASS in the right pane, double-click on it.
    edit the folder properties
  9. Change IPF.IMAP to IPF.Note then click OK to close the dialog.
    change the container class to ipf.note
  10. Repeat for each folder that was exported from an IMAP data file.
  11. When you are finished, close the MFCMAPI window, click Session, Logoff on the last MFCMAPI window.

Video Tutorial

 

Use VBScript to change the selected folder

To use, copy and paste into Notepad then save with the .vbs extension. Select the folder you need to change then double click to run it the VBS.

PropName = "http://schemas.microsoft.com/mapi/proptag/0x3613001E"
Value = "IPF.NOTE"

Set oOutlook = CreateObject("Outlook.Application")
Set oFolder = oOutlook.ActiveExplorer.CurrentFolder
Set oPA = oFolder.PropertyAccessor

FolderType = oPA.GetProperty(PropName)

'MsgBox (FolderType)

If FolderType = "IPF.Imap" Then
   oPA.SetProperty PropName, Value
End If

More Information

Fix the Outlook Folder Type after Exporting an IMAP Account

The Delete button is disabled in Outlook's Inbox was last modified: May 16th, 2022 by Diane Poremsky
Post Views: 45

Related Posts:

  • Deliver All POP3 Accounts to One Outlook Inbox
  • Delete reminders that keep returning
  • To rename Outlook's default folders
  • Delete the Junk Email Rule in Exchange mailboxes

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. Tim Revis says

    June 1, 2023 at 4:02 pm

    Hi, Diane. I installed Outlook on a new machine and added my IMAP (Google) account. I have 2-3 folders I can't delete or rename. I'm using MFCMAPI but do not have "Top of Outlook Data File" and see all my folders (including the ones I want to delete), but do not have a property called "PR_CONTAINER_CLASS..." listed at all. I have CONTAINER_CONTENTS and CONTAINER_HIERARCHY. I do not see where to change the property value you described from from IPF.MAPI to IPF.NOTE. Can you help, please!?

    Reply
  2. Owen Clark says

    February 21, 2023 at 6:06 am

    Great article really helped me. Thank you!

    Reply
  3. Shannon Connor says

    June 5, 2020 at 11:30 am

    Thank you! This worked beautifully.

    Reply
  4. Ed Connolly says

    December 27, 2019 at 5:19 pm

    Once my 72 year old brain got the starting point this was such a helpful process and with an amazing outcome of a fix...thanks so much.
    Ed
    PS with this outcome, could it be that I have mail on a server somewhere instead of my computer...... One of the strange things I noticed when I installed Office on my new computer was a sudden influx of very old mail as it transitioned from the older computer on POP3 to IMAP

    Thanks again

    Reply
  5. malaka says

    December 9, 2019 at 9:11 am

    Thank You so Much!

    Reply
  6. Waldemar Kowalik says

    June 29, 2019 at 12:44 am

    This is absolutely amazing. I spent a few evening looking for it. Great. Thank You. God Bless You

    Reply
  7. Mark says

    February 14, 2018 at 8:06 am

    This was amazing. Worked like a charm. Your instructions were PERFECT. I spent hours searching for a cure to this issue and it only took me 30 minutes to fix. AMAZING. I cannot thank you enough.

    Reply
  8. J Brown says

    October 11, 2017 at 9:37 pm

    These instructions worked perfectly! Thank you.

    Reply
  9. Mark says

    July 9, 2017 at 6:36 am

    Thanks for posting this. My Delete button was grayed out. It wasn't always like that, but after following your instruction my delete button works again!

    Reply
  10. Tim says

    May 30, 2017 at 5:09 pm

    Many thanks for the very helpful article; I successfully restore the delete button to use. Tim

    Reply
  11. Theodorus says

    March 29, 2017 at 7:43 am

    Thank you! Thank you! Thank you! After moving/combining thousands of emails from Gmail IMAP to POP3, I started moving emails from the POP3 inbox to folders marked as IMAP and they were 'disappearing'. I thought they were lost forever. I changed the view and it worked, but this permanently and properly fixed all of those subfolders, so that I can use any view I want.

    Reply
  12. Lisa Richardson says

    February 4, 2017 at 2:25 am

    That was a legend fix - thank you!

    Reply
  13. papa says

    October 17, 2015 at 7:28 am

    wrong, i never exported anything

    Reply
  14. Pete Dennen says

    September 28, 2015 at 1:07 pm

    I followed the instructions and changed all affected folders from "IMAP" to "Note". However, when I re-opened Outlook 2013, affected folders still showed "IMAP". I thought I had the problem fixed. So frustrated :(

    Reply
  15. kevin eaton says

    June 29, 2015 at 9:27 am

    it all seems fine. i had 9 mailboxes, and all bar 1 were exported from o2k13, the other being 2k7, all downloaded from gmail via imap. some of them had the property, and had it wrong, and others just didnt have it. i fixed the ones that were wrong with your script, and couldnt do anything with the other ones so i imported them. it seems to all be fine so far....

    Reply
  16. kevin says

    June 25, 2015 at 7:12 am

    hi diane, firstly thanks for your work above, it has helped me out previously with imap to exchange migrations. however, i have a weird issue. i have 9 mailboxes with thousands of folders from gmail. ive connected via imap, and exported to a pst.for each account. i was then going to use your script to change the PR_CONTAINER_CLASS attribute prior to importing to exchange, but i thought id check one pst file first with mfcmapi manually. the property PR_CONTAINER_CLASS does not exist at all in any of the folders. im in the middle of the migration and the customer is getting a bit twitchy - any chance you can tell me what i should do? the mailbox in question im looking at with mfc mapi was connected to gmail via outlook 2007. is it because of 2007 that this has occurred? thanks in advance for your help.

    Reply
    • Diane Poremsky says

      June 28, 2015 at 7:19 pm

      Is the exported mail visible? Are the views on the folders the IMAP views? If the exported mail does not have the IMAP views, you don't need to change anything. To the best of my recollection, Outlook 2007 generally exported IMAP correctly.

      Reply
    • kevin eaton says

      June 29, 2015 at 5:42 am

      hi diane, thanks for your reply. yes, its all visible and doesnt appear to have any issues. thats great but it also worries me as the pr_container class property is missing. im guessing if the property doesnt exist then maybe outlook decides its a mail folder by default?

      Reply
      • Diane Poremsky says

        June 29, 2015 at 9:12 am

        When you create a new pst, the inbox, sent, deleted probably won't have it but everything else should. At least that is how it is in Outlook 2013 - I haven't checked exported pst files or pst files from older versions of outlook. I have some older pst around here somewhere, I'll check them - I know the container class problem is most common with newer versions of outlook so it's possible it's due to a change in the data file structure used with imap.

        As long as the pst works correctly in Outlook, I wouldn't worry about it but would do a test import and see if it imports ok. (I fully expect it will.)

  17. Robert A. ober says

    June 19, 2015 at 3:18 pm

    Thanks so much, moved a client back to pop3 as OL handles IMAP so poorly and after using your fix the Delete is back.

    Reply
  18. K says

    March 25, 2015 at 11:19 am

    I have a user experiencing an inability to use the delete or tab key inside outlook 2013. It's an exchange 2012 server and it just started. She has had no issues prior. Running Outlook 2013 through terminal services with server 2012. Over a hundred other users, no one else is having the issue. Any idea.

    Reply
    • Diane Poremsky says

      March 28, 2015 at 11:14 am

      I'm assuming that there are no updates waiting to be installed since this is a terminal services situation, because waiting updates can cause issues in Outlook. If the problem just started within the last couple of days or weeks, it could be updated - system restore should fix it, if the problem is related to recent updates and is limited to her workstation.

      Reply
  19. Sergio says

    February 2, 2015 at 7:49 am

    Worked fine on Outlook 2007. I was using Imap, then switched to Pop3 .
    Tanks Diane!

    Reply
  20. Daniel Michael says

    January 5, 2015 at 9:49 am

    Downloaded 64 bit version, installed and started it. No errors.
    1st: didn't know which account to double click on, so I tried doing both.
    The instructions above are not accurate with Outlook 2013.
    So I improvised as best as I could.
    Next, couldn't find the "PR_CONTAINER_CLASS " anywhere in either of them..
    Fail.

    Reply
    • Diane Poremsky says

      January 5, 2015 at 2:16 pm

      What type of email account are you using? The instructions vary slightly depending on the account type.

      If you need to fix the folder type due to exporting an imap account, i have a macro that will do the hard part for you - you just need to select the parent folder and run it.
      https://www.slipstick.com/developer/code-samples/change-outlook-folder-type-export/

      Reply
      • Chris Morris says

        November 16, 2015 at 3:46 pm

        What if the folder has a null (empty value). I have 1,400 mailboxes that I'll have to check to see if all the mail folders have the IPF.note value. In checking 6 of them I see folders that don't have this value. What can I do except using the mfcmapi manually to change each one? Thanks.

      • Diane Poremsky says

        November 16, 2015 at 8:40 pm

        Are the null folder type ones mail folders?

        I have a macro that can change imap folders to ipf.note - https://www.slipstick.com/developer/code-samples/change-outlook-folder-type-export/ - but it needs to be run on each account/profile. I'm not sure if it's suitable for conversion to vbscript - if so, adding it to a logon script would work.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 3

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.