summary import { ManagedServiceIdentityClient } from "@msinternal/msi-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function identityDelete ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rgName" ; const resourceName = "resourceName" ; const credential = new DefaultAzureCredential ( ) ; const client = new ManagedServiceIdentityClient ( credential , subscriptionId ) ; const result = await client . userAssignedIdentities . delete ( resourceGroupName , resourceName ) ; console . log ( result ) ; } identityDelete ( ) . catch ( console . error ) ;