You may try the following PS script
$memberlist = Get-DistributionGroupMember -Identity <dl name>
$memberlist | % {Remove-DistributionGroupMember -Identity <dl name> -Member $_.Name -Confirm:$false}
--please don't forget to upvote
and Accept as answer
if the reply is helpful--