Author Posts

March 26, 2017 at 7:26 am

Hi All,
Short question, is it possible to delete empty folders in Exchange Online via powershell?
The problem is a users have tons of folders in their inboxes which became empty after online archive retention.
I tried to search empty folders by Get-MailboxFolderStatistics and pass folders ids to new-compliancesearch for remove them after, but unfortunately search folders by folder id is not working atm in Exchange Online (btw, does anybody know why?).
Any ideas?
Thank you very much.

March 27, 2017 at 11:58 am

The O365 commands aren't super-geared toward managing individual items like folders. I think the general theory is that, if the empty users are bothering the user, they'll delete them on their own.

March 27, 2017 at 12:08 pm

Don, thanks for your reply.
Users may have tons of empty folders and sometimes its not possible to delete them on their own.

March 27, 2017 at 12:12 pm

I get it – I was just trying to explain Microsoft's general philosophy, not that it's perfect for everyone.