Home

Deleting meetings organized by long gone employee

%3CLINGO-SUB%20id%3D%22lingo-sub-88869%22%20slang%3D%22en-US%22%3EDeleting%20meetings%20organized%20by%20long%20gone%20employee%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-88869%22%20slang%3D%22en-US%22%3E%3CP%3EA%20user%2C%20joe.user%40contoso.com%2C%20organized%20some%20meetings%20in%20the%20past.%20He%20left%20the%20company%206%20month%20ago.%20His%20mailbox%20is%20deleted%20since%205%20month.%20But%20now%20his%20meetings%20should%20be%20cancelled.%20Environment%20is%20Office%20365.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMS%20recently%20announced%20here%20(%3CA%20href%3D%22https%3A%2F%2Fportal.office.com%2Fadminportal%2Fhome%23%2FMessageCenter%3Fid%3DMC106884%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fportal.office.com%2Fadminportal%2Fhome%23%2FMessageCenter%3Fid%3DMC106884%3C%2FA%3E)%20a%20Powershell%20command%20for%20that%20problem.%20But%20when%20I%20try%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ERemove-CalendarEvents%20-Identity%20%22joe.user%40contoso.com%22%20-CancelOrganizedMeetings%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20get%20the%20error%3C%2FP%3E%3CPRE%3E%22Object%20'joe.user%40contoso.com'%20not%20found%20in%26nbsp%3B'AMy.EURx.prod.outlook.com'%22.%26nbsp%3B%0ACategoryInfo%3A%20NotSpecified%3A%20(%3A)%20%5BRemove-CalendarEvents%5D%2C%20ManagementObjectNotFoundException%3C%2FPRE%3E%3CP%3EWhere%20is%20my%20fault%20or%20what%20is%20wrong%20with%20this%20command%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-88869%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%20Commands%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-89340%22%20slang%3D%22en-US%22%3ERE%3A%20Deleting%20meetings%20organized%20by%20long%20gone%20employee%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-89340%22%20slang%3D%22en-US%22%3EI%20still%20don't%20know%20why%20the%20Calendar%20Attendant%20doesn't%20just%20clean%20those%20up.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-88922%22%20slang%3D%22en-US%22%3ERe%3A%20Deleting%20meetings%20organized%20by%20long%20gone%20employee%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-88922%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20cannot%20use%20the%20cmdlet%20if%20the%20organizer%20mailbox%20doesnt%20exist%20anymore.%20Instead%2C%20you%20will%20have%20to%20remove%20the%20items%20directly%20from%20the%20attendee's%20mailboxes.%20You%20can%20use%20some%20EWS%20based%20solution%20for%20this%2C%20there%20are%20sample%20scripts%20available%20on%20the%20internet.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Robert K
Contributor

A user, joe.user@contoso.com, organized some meetings in the past. He left the company 6 month ago. His mailbox is deleted since 5 month. But now his meetings should be cancelled. Environment is Office 365.

 

MS recently announced here (https://portal.office.com/adminportal/home#/MessageCenter?id=MC106884) a Powershell command for that problem. But when I try 

 

 

Remove-CalendarEvents -Identity "joe.user@contoso.com" -CancelOrganizedMeetings

 

 

I get the error

"Object 'joe.user@contoso.com' not found in 'AMy.EURx.prod.outlook.com'". 
CategoryInfo: NotSpecified: (:) [Remove-CalendarEvents], ManagementObjectNotFoundException

Where is my fault or what is wrong with this command? 

 

2 Replies

You cannot use the cmdlet if the organizer mailbox doesnt exist anymore. Instead, you will have to remove the items directly from the attendee's mailboxes. You can use some EWS based solution for this, there are sample scripts available on the internet.

I still don't know why the Calendar Attendant doesn't just clean those up.
Related Conversations
Teams Chat and Teams Meeting screen in separate windows
hiteshv in Microsoft Teams on
41 Replies
External meetings with Teams
SasPu in Microsoft Teams on
9 Replies
Why the Teams Calendar not visible in Outlook?
Subhendu Maji in Microsoft Teams AMA on
10 Replies
People number limit in MS Teams meetings
Natalia Nemkovich in Microsoft Teams on
1 Replies
More than 4 windows for video meetings
James_Laird in Microsoft Teams on
8 Replies