Do not do this. Make sure you have set up a hybrid configuration with microsoft Teams and have transferred all Users from the local pool to the cloud, otherwise you will have issues where Teams will detect your users as still homed on Premise.
If you simply Remove them you will also leave a lot of unnecessary fragments in the active directory - Also see the Microsoft Article on the Topic: https://learn.microsoft.com/en-us/skypeforbusiness/hybrid/decommission-remove-on-prem#remove-your-on-premises-skype-for-business-deployment-1