CmdID / PowerShell / Cmdlets / Remove
Remove-UserPhoto
Use the Remove-UserPhoto cmdlet to delete the photo associated with a user's account. Exchange PowerShell reference
From the Exchange PowerShell reference 8 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the identity of the user.-ClearMailboxPhotoRecordThe ClearMailboxPhoto switch specifies that a deleted mailbox photo is considered blank instead of deleted.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-GroupMailboxThe GroupMailbox switch is required to modify Microsoft 365 Groups.-IgnoreDefaultScopeThe IgnoreDefaultScope switch tells the command to ignore the default recipient scope setting for the Exchange PowerShell session, and to use the entire forest as the scope.-PhotoTypeThis parameter is reserved for internal Microsoft use.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.