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