A lower carb, reasonable portions, real food diet and plenty of exercise is safer.
It is unrealistic for some to do it by diet alone. My husband is diabetic, but does not need to lose any weight. He already lost almost 100 pounds but still has high blood sugar even on insulin. He is on his third week of the starter dose of .25 Ozempic. His blood sugar is normal!