How to Delete Registered Bots in WordPress?

Hi, We have an issue that needs to be fixed ASAP. Tons of spam bots have registered to my website while I was importing users from Shopify. 6,000 real users and 14,000 fake bots. I know how to stop those bots by adding a captcha. However, I need to automatically delete those spam users who are already signed up. Is there any way of doing this?