Read time 5 minutes
An Outlook database file (PST) holds the structural hierarchy of the mailbox and its folders. Some folders come inbuilt like Inbox, Sent Items, Draft, etc. while the users can create some. Over time, the database file grows in size as many emails are Sent and Received. They occupy the database file storage space, and so demand space management.
An Outlook user has different ways to manage the PST data by exporting it to other locations (system drive or different email/client destination), archiving file items, manually deleting, or migrating to some other platform. Before all these actions, it is good to remove all Empty Folders, sub-folders, etc. so as to eliminate unnecessary complications.
Empty Folders are a cause of annoyance. Besides consuming space, they create confusion and disappointment as no emails are found after accessing them. While trying to export items from the Outlook PST file, it would also move these empty folders, which is undesirable for Outlook users. The folders without any data or information are of no use in the new location. Let us find suitable ways to delete these empty folders permanently.
Dealing with empty folders deletion is an easy task if the number of empty folders is less. Microsoft Outlook allows users to delete an empty folder by simply right-clicking on it and selecting the Delete Folder option from the list.
This way of deleting empty folders in Outlook is not viable if there are numerous empty folders. It takes a lot of time for users to complete the manual deletion of these subfolders. So, there is a need to find an alternative solution.
If you have Outlook PST 2019/2016 and are ready to take a chance, follow the given procedure to delete empty folders from Outlook.
This VBA Macro Code is to delete all empty sub-folders in any Outlook folder. Let us know the process stepwise.
If xFldr.Items.Count < 1 Then ‘If the folder is empty check for subfolders
If xFldr.Folders.Count < 1 Then ‘If the folder contains not sub folders confirm deletion
xFldr.Delete ‘Delete the folder
xFlag = True
xCount = xCount + 1
Else ‘Folder contains sub folders so confirm deletion
FolderPurge xFldr.Folders, xFlag, xCount
End If
Else ‘Folder contains items or (subfolders that may be empty).
FolderPurge xFldr.Folders, xFlag, xCount
End If
Next
End If
End Sub
The method is a bit technical and needs to be followed carefully for accurate results.
Sometimes, these empty folders and sub-folders are not easily identifiable when you plan to delete them manually. We propose the automated solution to find various Outlook folder properties, including the empty folder information – Kernel Outlook PST Reporter tool. It scans the Outlook profile thoroughly and provides information such as PST folder items number, folder size, types of items, etc. in the generated report. So, those folders which have 0 file items can be easily identified. So, this tool can help you simplify the manual deletion of empty folders.
The software generates multiple reports to provide users some crucial information related to the Outlook data like read/unread messages, email attachment type, size, and number. Go to the website to download this tool for free.
Trouble due to empty folders in the Outlook application is discussed in this blog. Also, two genuine solutions to permanently delete empty folders have been described with the procedures. Also, a simple solution is introduced as well to identify the empty folders in the Outlook PST file.
The article is well-structured and organized, with clear headings and subheadings that make it easy to navigate. I would highly recommend this article to anyone who wants to clean up their Outlook inbox and get rid of empty folders.