Help how do I lower or get rid of it

So yesterday I went to the er due to dehydration but there they told me my glucose was kind of high ( sugar in my urine) that's never been a problem for me before so I'm kinda worried could it be bc I've been drinking more cokes and sugar drinks than usual i hardly drink them but since I was visiting family I broke my rules and drank them along with them. Any advice on how to lower it..? Please no mean comments