The most recent experience has been the quarantine. We stocked up on essentials from costco, which meant no sweets. After going a couple of months without candy, I entered a market yesterday wanting to grab some basics and a snack or two. I ended up with beef jerky and some gold fish crackers. It's not like they're healthy, but it's out of character for me.
I've trained myself to not want to add sugar to anything, after a while I stopped wanting to have things that had a lot of sugar in them.
I'll still go for a bit of carrot cake with a coffee on a weekend outing to the shops or something. but my day-to-day activities no longer want sugar in my coffee or tea or Chicroy
Check with your doctor first. My cousin did this for a month got type I diabetes. (I suspect he would have anyway given his genetics, but the fast changed his body enough to bring it on sooner)