Exchange Shell
1 TopicRemove-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 folders for me and Promo is in there. Remove-MgUserMailFolder -MailFolderId Promo-UserId mailto:email address removed for privacy reasons returns the error Remove-MgUserMailFolder : Id is malformed GET /users/email address removed for privacy reasons/mailFolders/Promo ==>I get the following error error": { "code": "ErrorInvalidIdMalformed", "message": "Id is malformed.", How can I remove a folder named "Promo" across the enterprise using Remove-MgUserMailFolder -MailFolderId Promo-UserId mailto:email address removed for privacy reasons Many thanks,Solved1.1KViews0likes2Comments