Many years ago Microsoft added a feature to Outlook.com that gave users the opportunity to link various online contact sources, such as Gmail, Facebook, Twitter and others with Outlook.com accounts. This created additional contact folders in the mailbox, one for each linked service. This service is no longer available but, unfortunately, the folders remain in the mailbox. These folders are visible in both Outlook desktop and on smartphones but are hidden in Outlook on the web.
I’m starting to hear from users who have these empty contacts folders in Outlook but are unable to delete them. A few seconds after deleting the folder, it pops back into view in Outlook.
Deleting the folders in Outlook doesn't work; the folders pop back up within seconds.
The solution: hide the folders using MFCMAPI. I have instructions to do one folder at a time at How to Hide or Delete Outlook's Default Folders but if you have multiple accounts in your profile, each with some of these extra folder, it can take some time to hide all of the folders.
This version of the macro checks all mailboxes in the profile and hides any of the folders it finds. The code to search for the folders is from Michael Bauer at VBOffice.net, using bits of code from Find a Folder by its Name and Expand All Folders.
If you have other folders you want to hide, add the folder name to the array, comma separated and wrapped in quotes. The macro will work with any folder (but Outlook may unhide the folder later).
arrFolder = Array("Skype Contacts", "People You May Know on Skype", "SkypeEnabled Contacts", "Facebook Contacts", "Linkedin Contacts", "google contacts", "twitter contacts", "Yahoo Contacts")
Hide Folders Macro
Private m_Folder As Outlook.MAPIFolder Private m_Find As String Private Const SpeedUp As Boolean = True Public Sub HideFolders() Dim Name$ Dim Folders As Outlook.Folders Set m_Folder = Nothing m_Find = "" Dim Ns As Outlook.NameSpace Set Ns = Application.GetNamespace("Mapi") Dim strFolder As String Dim arrFolder As Variant ' Set up the array arrFolder = Array("Skype Contacts", "People You May Know on Skype", "SkypeEnabled Contacts", "Facebook Contacts", "Linkedin Contacts", "google contacts", "twitter contacts", "Yahoo Contacts") ' Go through the array and look for a match, then do something For i = LBound(arrFolder) To UBound(arrFolder) m_Find = arrFolder(i) m_Find = LCase$(m_Find) m_Find = Replace(m_Find, "%", "*") Set Folders = Application.Session.Folders LoopFolders Ns.Folders, True Next i End Sub Private Sub LoopFolders(Folders As Outlook.Folders, ByVal bRecursive As Boolean) Dim F As Outlook.MAPIFolder Dim Found As Boolean Dim oFolder As Outlook.Folder Dim oPA As Outlook.PropertyAccessor Dim PropName, Value, FolderType As String PropName = "http://schemas.microsoft.com/mapi/proptag/0x10F4000B" Value = True If SpeedUp = False Then DoEvents For Each F In Folders Found = (LCase$(F.Name) = m_Find) If Found Then Debug.Print F.Name Set oPA = F.PropertyAccessor oPA.SetProperty PropName, Value End If LoopFolders F.Folders, bRecursive If Not m_Folder Is Nothing Then Exit For Next End Sub
How to use the macros on this page
First: You need to have macro security set to the lowest setting, Enable all macros during testing. The macros will not work with the top two options that disable all macros or unsigned macros. You could choose the option Notification for all macros, then accept it each time you restart Outlook, however, because it's somewhat hard to sneak macros into Outlook (unlike in Word and Excel), allowing all macros is safe, especially during the testing phase. You can sign the macro when it is finished and change the macro security to notify.
To check your macro security in Outlook 2010 and newer, go to File, Options, Trust Center and open Trust Center Settings, and change the Macro Settings. In Outlook 2007 and older, look at Tools, Macro Security.
After you test the macro and see that it works, you can either leave macro security set to low or sign the macro.
The macros on this page should be placed in a module.
Open the VBA Editor by pressing Alt+F11 on your keyboard.
To put the code in a module:
- Right click on Project1 and choose Insert > Module
- Copy and paste the macro into the new module.
More information as well as screenshots are at How to use the VBA Editor
Puede usar su dirección de correo electrónico confirmada para iniciar sesión en su cuenta, así como convertirla en su dirección principal para todas las comunicaciones entre usted y ID.me
FWIW I'll note that this problem still exists in macOS Outlook 365 as of today, September 2019. Also, the hiding solution suggested above is (AFAIK) for Windows only.
While it's annoying, it's not the end of the world, as it seems to have no practical effect. Still I find it very surprising that MS hasn't fixed this yet.
Correct, its windows only. I don't think there is a solution for mac - microsoft needs to delete the folders.
Sometime between when I posted (Sept 16) and today (Nov 4) this problem disappeared (for me, YMMV). I no longer have any extra/legacy contacts folders showing in macOS Outlook Contacts. Yeah! :-)
Cool, i hope that means they finally removed those folders.
Thanks for sharing!
Confirmed on the web interface also by doing the below steps which Microsoft help desk suggested me once upon a time:
Sign-in on IE, press F12, on Emulation tab, select User agent as IE8 or older, the page reloads with old and simple interface. There are no longer those extra folders listed on Contacts folder management page. Those have really gone. Thanks.
Hi Diane. I don't know if you can help me.
I've managed to hide the unused contact folders, but I want to delete them. But I keep getting this message. It happens on all these folders and I confirmed that they are empty.
Any idea?
I'm not sure why that error is coming up (I'm getting the same error.)
Is there any word on when MS will properly fix this so people can simply delete the folders at will? Or when MS plans to remove all of them the way they are doing with the Skype contact folders?
I have not heard anything recently, but when i talked to them about this problem, they said they would remove them. It's apparently a very slow process - its taking close to a year to remove skype from all of the mailboxes.
If you can succeed deleting those folders also from Deleted Items folders after deleting them from their original location in that “a few seconds” before they pop back into the original location, you can completely and permanently get rid of them . :D I did it, it works!
That worked, after a few tries to get the timing right. I opened two windows, side-by-side. I deleted the empty social contact folder in the left window, then right-clicked to empty the deleted items folder in right window.
This also worked for me in terms of what the local Outlook desktop UI shows, but each delete operation did log a sync issue such as "Error in folder 'LinkedIn Contacts'" and "Synchronization of some deletions failed."
Yeah, delete is failing. :(