Delete Exchange Online empty folders

This topic contains 3 replies, has 2 voices, and was last updated by  Don Jones 1 year, 2 months ago.

  • Author
  • #67252

    Sergei Rogozin

    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.

  • #67354

    Don Jones

    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.

    • #67362

      Sergei Rogozin

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

  • #67365

    Don Jones

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

You must be logged in to reply to this topic.