summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function deleteIPGroups ( ) { const subscriptionId = "subId" ; const resourceGroupName = "myResourceGroup" ; const ipGroupsName = "ipGroups1" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . ipGroups . beginDeleteAndWait ( resourceGroupName , ipGroupsName ) ; console . log ( result ) ; } deleteIPGroups ( ) . catch ( console . error ) ;