Just remove all references to it from your code (the fact that it still exists in settings isn't an issue at this point).
Then stop enigma2 (init 4), edit /etc/enigma2/settings with a Unix text editor and remove the line, then restart enigma2 (init 3).
Since it's only you who has the setting, don't over-complicate its removal by trying to write code to do it.