CoreOps/RetentionPolicies/Remove-SDPRetentionPolicy.ps1
function Remove-SDPRetentionPolicy { param( [parameter(ValueFromPipelineByPropertyName)] [Alias('pipeId')] [string] $id, [parameter()] [string] $k2context = 'k2rfconnection' ) ## Special Ops begin { $endpoint = "retention_policies" } process { ## Make the call $endpointURI = $endpoint + '/' + $id $results = Invoke-SDPRestCall -endpoint $endpointURI -method DELETE -k2context $k2context return $results } } |