How do I ensure that attachments and notes are not shared with a resource calendar?

In many organizations you like to ensure that no attachments and notes relate to a resource calendar. Here is the way 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.