Public/Company/Contacts/Remove-CWMContact.ps1
function Remove-CWMContact { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory=$true)] [Alias('contactId')] [int]$id ) $Endpoint = "/company/contacts/$($id)" return Invoke-CWMDeleteMaster -Endpoint $Endpoint } |