Public/Marketing/GroupCompanies/Remove-CWMMarketingGroupCompany.ps1
function Remove-CWMMarketingGroupCompany { [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "")] [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory=$true)] [int]$ID, [Parameter(Mandatory=$true)] [int]$CompanyId ) $URI = "https://$($script:CWMServerConnection.Server)/v4_6_release/apis/3.0/marketing/groups/$($ID)/companies/$($CompanyId)" return Invoke-CWMDeleteMaster -URI $URI } |