Delete Exchange Online empty folders

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 2 months, 3 weeks ago.

  • Author
    Posts
  • #67252
    Profile photo of Sergei Rogozin
    Sergei Rogozin
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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
      Profile photo of Sergei Rogozin
      Sergei Rogozin
      Participant

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

  • #67365
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.