powershell: how to remove a calendar for many users?


Hi all,

I've hundreds users and they should remove a calendar (having the same name for each user) from their outlook.

No way to ask them to go into outlook doing right click - remove...

Any chances to go through powershell commands?




4 Replies
All users have a calender added in their Outlook profile from somebody? It's not a calender in their own Exchange mailbox?

hi @Harm_Veenstra,

no somebody shared his calendar and they then accepted.

but for some reason if the owner remove the sharing, the calendar keep staying there...

I searched on the server but I didn't find anything 

best response confirmed by mfranhind115 (Contributor)



I'm not sure if you're talking about Exchange Server or Exchange Online - and I'm not particularly experienced with the latter, but with the former, you may be able to deal with this using Get-/Set-MailboxCalendarFolder and Get-/Set-MailboxFolderPermission.


It's been a fair while since I've worked with Exchange Server but I do remember having to set (which includes removing) the permissions a subfolder within the mailbox calendar, too, but this may just be a relic from the past. The subfolder related to the free/busy information but the name of it just isn't coming to me at this point in time.


You might also want to drop the question into the Exchange forum, where the people that work with such things everyday might be of more assistance - particularly with Exchange PowerShell.



A good starting point would be to run Get-MailboxCalendarFolder -Identity "user:\Calendar", where "user" is the user who sent out the invitation, and see if anything shows up. Same thing for Get-MailboxFolderPermission (or the V2 equivalent of Get-EXOMailboxFolderPermission.)


These might help guide you on which Set- or Remove- command to follow up with. For example, back in the day (when I was young!), you'd usually find something had been granted on the ":\Calendar" mailbox folder in which case you'd remove it.


I haven't talked about the Get-/Set-/Remove-MailboxPermission commandlets here because they don't fit with the scenario you outlined about invitations being sent, but they are worth being aware of in case any stray users have been granted access to more than just the calendar.




Hi @LainRobertson ,

we have exchange online (no dedicated server).

thank you for your suggestions, I will try and let you know!