Bulk removal of directly assigned subscriptions of o365 licenses in IM manager

Hi,

We have a number of users in AAD who have directly assigned licenses/subscriptions, and we would like to remove them and leave those that are group assigned. We want to do this in IAM.

Thanks