I have the problem that the custom fields overload the wordpress installation and the theme doesn't work correctly.
Some people have also problems removing unused custom fields like here
You can delete them with this guide
There are now over 700.000 custom fields in the database.
If I delete them, the wordpress installation works again.
Any idea how to get a better performace and reliably delete orphaned custom fields?