summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function deletePrivateEndPointConnectionForAPrivateLinkService ( ) { const subscriptionId = "subId" ; const resourceGroupName = "rg1" ; const serviceName = "testPls" ; const peConnectionName = "testPlePeConnection" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . privateLinkServices . beginDeletePrivateEndpointConnectionAndWait ( resourceGroupName , serviceName , peConnectionName ) ; console . log ( result ) ; } deletePrivateEndPointConnectionForAPrivateLinkService ( ) . catch ( console . error ) ;