A fasting diet does not mean giving up food forever. It simple means going without food for a day or two to cleanse your system and then dieting regularly.
"Fasting diets" are not meant as long-term weight loss solutions. When a person is fasting, they are not eating. They can still drink water and some clear liquids.