Hi,
Thanks for posting your question in the Microsoft Q&A forum.
Here are two methods you can choose from depending on your situation.
1.If you want to delete dynamic distribution group members through PowerShell, you must be an organization administrator or a member of the "Security Group Creation and Membership" role in the Exchange Admin Center.
- You can delete or changes the distribution group by adding ManagedBy to its own attribute.
Connect to Exchange Online by using remote PowerShell, and run the following cmdlet in Powershell:
Set-DistributionGroup <group> -ManagedBy @{Add="<value1>", "<value2>", …} -BypassSecurityGroupManagerCheck
You can refer to this URL for specific details: You don't have sufficient permissions when remove or change distribution group - Exchange | Microsoft Learn
If my reply helps you, please mark him as an answer. Thanks for the support and understanding.