This PowerShell scripting process will allow an administrator to remove licenses from groups in Azure Active Directory. You can manually remove licenses through Azure AD or through admin.Microsoft, but automating the process would be easier to scale up.
by Jack Stabile