Delete Exchange Online empty folders

Welcome Forums General PowerShell Q&A Delete Exchange Online empty folders

This topic contains 3 replies, has 2 voices, and was last updated by

 
Keymaster
1 year, 8 months ago.

  • Author
    Posts
  • #67252

    Participant
    Points: 1
    Rank: Member

    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

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    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

      Participant
      Points: 1
      Rank: Member

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

  • #67365

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

The topic ‘Delete Exchange Online empty folders’ is closed to new replies.