We need to delete a calendar invite from a terminated user.
How can we do this? All i can find regard the command "Search-mailbox" which the azure shell says the following too: "search-mailbox: The term 'search-mailbox' is not recognized as a name of a cmdlet, function, script file, or executable program.
Also i tryed this command: Remove-CalendarEvents -Identity "user" -CancelOrganizedMeetings -QueryWindowInDays 180
But as the user is deleted, it can't be found on the database.
Hope you can help, as it seems many poeple have come accross this issue, but no fixes to be found.
We are running office365.
Regards
Alexander Parkø