How to Automate removing components from Blueprint assets?

I have over 100 blueprint classes that all have several child actor components. I want to remove all these components since they are no longer needed but manually removing them would take ages. Is there a way of automating deleting these components from the blueprint classes?
I tried using a Blueprint Editor Script but it doesn’t seem to be able to modify the asset itself, only instances.