This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This thread is resolved. Here is a description of the problem and solution.
I am trying to remove language from the database which says that the locale already exists. I added India as a language but instead of https://www.techbelt.com/hi/ I wanted to have https://www.techbelt.com/in/ the language is India English so href was en-IN.
Running this query:
DELETE FROM `wp_icl_translations` WHERE language_code = 'en-in'
and clearing the WPML cache did the job.