Forum Discussion
Deleted
Oct 13, 2017How to delete all calendar appointments booked by terminated users?
We have a Hybrid set up with o365 and we ahve around 150+ Meeting rooms. How to delete all calendar appointments booked by terminated users? Before deleting, we need to email out all attendees to ...
StephenHoos
Jan 08, 2021Copper Contributor
Kerry Loftus It looks like Search-Mailbox is deprecated. What would be the new command for this?
New-ComplianceSearchAction does not seem to have a delete function.
James260
Nov 08, 2022Copper Contributor
Likely very late to this part, but here is what you may want to look into. After completing your content search, ...
New-ComplianceSearchAction -SearchName "YourSearchName" -Purge -PurgeType HardDelete
SoftDelete is also an option.
Be careful that your content search has only returned items you want to delete.
- alexrabbiJul 02, 2023Brass Contributor
Ray_Gonzalez this command worked for me, but it took longer time than i expected
Remove-CalendarEvents -Identity "Angela Gruber" -CancelOrganizedMeetings -QueryStartDate 11-1-2018 -QueryWindowInDays 120
- Ray_GonzalezJul 02, 2023Copper ContributorWhat was the solution?
- alexrabbiMar 29, 2023Brass ContributorHi All,
This finally worked, it took some time but all the above worked for me - alexrabbiMar 05, 2023Brass ContributorHi All,
I tried all the below coomand and waited for couple of days, but meeting invites are not deleted
Remove-CalendarEvents -Identity email address removed for privacy reasons -CancelOrganizedMeetings -QueryWindowInDays 120
Remove-CalendarEvents -Identity "Angela Gruber" -CancelOrganizedMeetings -QueryStartDate 11-1-2018 -QueryWindowInDays 120
Remove-CalendarEvents -Identity "Jacob Berger" -CancelOrganizedMeetings -QueryStartDate 9-1-2018 -QueryWindowInDays 90 -PreviewOnly -Verbose
Am i doing anything wrong here?
REgards,
Alex - James260Nov 08, 2022Copper ContributorI'm seeing various blogs/posts on this general issue that go back around 10 years, perhaps more.
Does Microsoft have a way to deal with this that handles the necessary nuances? If not, what is the reason for not doing this?
- for example, organizer long since deleted and not under litigation hold... was removed midstream of a meeting series they organized. Meetings occurances that were held should not be deleted from peoples calendar (history), but future (based on an as of date perhaps) meeting occurances need to be rejected (by attendee) or the meeting cancelled (vs just deleted) or the "end date" of the series adjusted properly.
- just highlighting some scenarios, ... I'm sure there are more nuances to be handled.
Note, I have successfully used Remove-CalendarEvents after restoring a deleted user that was deleted within the past 30 days. However, this too does not seem ideal, as that is monkeying around with the deleted user's mailbox, which may need to remain "static". It would be good if at least an admin (but preferably self serve by a user), could clean up calendars after an organizer is gone.