How do I avoid sharing attachments and notes with a resource calendar?

Learn how to exclude attachments and notes from a resource calendar in Microsoft Exchange

Many organizations have the policy of ensuring that no attachments and notes are related to a resource calendar. Here is how to ensure this:

Connect to Microsoft Online using PowerShell and execute the following, where <Identity> is the email of the resource calendar:

Set-CalendarProcessing -Identity "<Identity>" -DeleteAttachments $true -DeleteComments $true

Note that attachments and notes of existing meetings in the resource calendar will not be deleted unless the meetings are updated.