Mass delete devices of unifi integration

Hello
My hoomeassistant recently got unusable due too huge DB
After investigation is found that there where over 32000 tracker devices created by the unifi network integration filling up the DB

Those are so many devices that I cannot load the integrations page to disable the integration or remove it to get rid of them because the website will always crash or not finish loading

Is there any way to remove the devices or the integration as a whole?

Also tried to just delete the devices from the device list but delete is not working there

I hope someone has an idea on how to get them cleaned out

Best regards

Cheated and used the first reply from this to disable it via the config file

Still unsure why so many unknown devices were created in the first place