After doing some tests in retail to remove and restore table entries, I noticed that reloading my UI restores the entries, which is not intended. That should happen when the UI button is pressed,
line 182 of ChatOptions.lua in Modules-Mainline\Chat.
I foresee the same issue when I port the code to Classic and Cataclysm.
I thought about table.remove, but that requires a numerical index, which I can't guarantee with my current code. When I comment out lines 182-196, the table entries do not return after being set to nil.
Any suggestions are welcome!