Forum Discussion

flourishingnixcomets's avatar
flourishingnixcomets
Copper Contributor
Oct 28, 2022
Solved

Remove-MgUserMailFolder not working because of invalid ID

Hello,   I've been asked to delete an Outlook folder called Promo across the whole enterprise.  Get-MgUserMailFolder -UserId email address removed for privacy reasons -All shows all Outlook folde...
  • VasilMichev's avatar
    Oct 28, 2022
    Well you need to provide the ID of the folder, not its name. You can obtain the ID value from the first cmdlet, Get-MgUserMailFolder, it will look something like this: AAMkAGU2MWM5NzU0LWY3MmQtNGI3OS1hNDVlLTBkMzI3OWVlNWIzZgAuAAAAAAChKSJAhlnUTIHtKSso30ThAQBIPfDMxyP-RYhY8M8xmAPVAAS8XYnlAAA=

Resources