I phased out sugar by setting a daily goal and then progressively lowering it. I started at 40g max per day (the reccomended limit) and then treated it like a game to find other sources of sugar in my diet. I now get about 5g /day from things like oatmeal and Brussels sprouts (even some vegetables have sugar). It’s not for everyone but it’s changed my life.