Background of the issue:
We've been having performance issues with WPML on our website, and we decided to reduce the number of languages our website supports to increase performance. Our website currently supports 5 languages: Arabic, English, French, Spanish, and Turkish. We want to get rid of 2 languages: French and Spanish. We've tried to go to 'WPML' -> 'Languages' page, removing the languages, and attempting to delete them, however a loading spinner shows up that seemingly never finishes. We've also tried to manually delete the various French and Spanish data around the website; we succeeded in deleting Spanish and French Elementor templates, but for some reason, Spanish and French WooCommerce categories won't get deleted.
Symptoms:
A loading spinner shows up that seemingly never finishes when trying to delete languages from the 'WPML' -> 'Languages' page. Spanish and French WooCommerce categories won't get deleted.
Questions:
How can we permanently remove all Spanish and French content from our website?
Why does the loading spinner never finish when trying to delete languages from the 'WPML' -> 'Languages' page?
How can we delete Spanish and French WooCommerce categories that won't get deleted?