Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

remove calendar appointments of a departed O365 user.

Hello, 


We want to remove all scheduled calendar events from a O365 user who has departed and her email license has been removed.  Would the below command work?  If not, please advise a way to work around.  

Remove-CalendarEvents -Identity pdoe@xyz.com -CancelOrganizedMeetings -QueryWindowInDays 180

Thanks!


Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

The cmdlet will only work if the user account (mailbox) still exists. If not, your only option is to use Search-Mailbox and delete the appointments. This is NOT the same thing as canceling them though,
Can we reinstate the license and then re-run the cmdlet to cancel the appointments ?
That depends on how much time has passed since it was removed, if the mailbox is still recoverable you should be able to do it.
Avatar of nav2567

ASKER

Vasil, would you advise the search-mailbox command to delete the apts?  The license has already been removed from the departed user. 
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Vasil.