Delete all calendar appointments for a list of users using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-1518356%22%20slang%3D%22en-US%22%3EDelete%20all%20calendar%20appointments%20for%20a%20list%20of%20users%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518356%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBecause%20of%20scheduling%20remote%20learning%20classes%2C%20the%20teachers%20has%20got%20numerous%20calendar%20events%20in%20their%20Teams%20calendar%20and%20its%20crashing%20the%20Teams%20app.%20Can%20somebody%20please%20help%20me%20with%20a%20powershell%20script%20to%20clear%20the%20calendar%20events%20for%20a%20list%20of%20users%20using%20input%20file%20(csv%20or%20txt).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-ERR%3AREF-NOT-FOUND-%40Tony%20Redmond%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMuhamed%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1518356%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalendar%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EO365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%20Commands%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1518428%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20all%20calendar%20appointments%20for%20a%20list%20of%20users%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1518428%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F587908%22%20target%3D%22_blank%22%3E%40muhamedrafeeq%3C%2FA%3E%26nbsp%3B%20This%20shouldn't%20happen.%20File%20a%20support%20incident%20with%20Microsoft%20to%20have%20them%20investigate%20why%20the%20calendar%20is%20causing%20a%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1523295%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20all%20calendar%20appointments%20for%20a%20list%20of%20users%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1523295%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20really%20need%20to%20remove%20the%20calendar%20events%20for%20many%20staffs%20(o365%20mailbox).%20Can%20somebody%20share%20a%20powershell%20script%20to%20do%20the%20same%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERafeeq%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1524135%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20all%20calendar%20appointments%20for%20a%20list%20of%20users%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1524135%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F587908%22%20target%3D%22_blank%22%3E%40muhamedrafeeq%3C%2FA%3E%26nbsp%3Bhave%20you%20tried%20using%20the%26nbsp%3BRemove-CalendarEvents%20script%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530916%22%20slang%3D%22en-US%22%3ERe%3A%20Delete%20all%20calendar%20appointments%20for%20a%20list%20of%20users%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530916%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F674460%22%20target%3D%22_blank%22%3E%40Ardamilola%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20I%20tried%20the%20%3CSPAN%3ERemove-CalendarEvents%26nbsp%3B%3C%2FSPAN%3Escript%2C%20but%20I%20believe%20that%20script%20is%20for%20future%20meetings%20and%20I%20want%20to%20clear%20the%20past%20meeting%20entries%20too.%20Also%20I%20got%20to%20clear%20calendar%20events%20for%20around%201000%2B%20users.%20So%20a%20script%20which%20calls%20the%20input%20list%20would%20be%20feasible.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

 

Because of scheduling remote learning classes, the teachers has got numerous calendar events in their Teams calendar and its crashing the Teams app. Can somebody please help me with a powershell script to clear the calendar events for a list of users using input file (csv or txt).

 

@Tony Redmond 

 

Regards,

Muhamed

4 Replies
Highlighted

@muhamedrafeeq  This shouldn't happen. File a support incident with Microsoft to have them investigate why the calendar is causing a problem.

Highlighted

Hi guys,

 

I really need to remove the calendar events for many staffs (o365 mailbox). Can somebody share a powershell script to do the same ?

 

Regards,

Rafeeq

Highlighted

@muhamedrafeeq have you tried using the Remove-CalendarEvents script ?

Highlighted

Hi @Ardamilola ,

 

Yes I tried the Remove-CalendarEvents script, but I believe that script is for future meetings and I want to clear the past meeting entries too. Also I got to clear calendar events for around 1000+ users. So a script which calls the input list would be feasible.