CmdID / PowerShell / Cmdlets / Remove
Remove-ServicePrincipal
Use the Remove-ServicePrincipal cmdlet to remove service principals from your cloud-based organization. Exchange PowerShell reference
From the Exchange PowerShell reference 3 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the service principal that you want to remove.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.