summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function routeFilterRuleDelete ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const routeFilterName = "filterName" ; const ruleName = "ruleName" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . routeFilterRules . beginDeleteAndWait ( resourceGroupName , routeFilterName , ruleName ) ; console . log ( result ) ; } routeFilterRuleDelete ( ) . catch ( console . error ) ;