summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function expressRouteConnectionDelete ( ) { const subscriptionId = "subid" ; const resourceGroupName = "resourceGroupName" ; const expressRouteGatewayName = "expressRouteGatewayName" ; const connectionName = "connectionName" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . expressRouteConnections . beginDeleteAndWait ( resourceGroupName , expressRouteGatewayName , connectionName ) ; console . log ( result ) ; } expressRouteConnectionDelete ( ) . catch ( console . error ) ;