Viewing Delegates using PowerShell

I received a call from my boss wanting to make sure that no one is a delegate on the CEO’s mailbox.

I had to verify if there are any delegates assigned to the mailbox by running this command:
Get-CalendarProcessing -identity “Mister CEO” | select-object ResourceDelegates

I then removed the delegates using this command:
Get-Mailbox -identity “Mister CEO” | Set-CalendarProcessing -ResourceDelegates $null

Afterwards, I re-ran the first command to make sure that the delegate has been removed.