To lose weight, you must have a balanced diet. Your method can be thin for a while, but it will rebound. When people are too weak to recover, their weight comes back.
It hurts your health. Not recommended.
To lose weight, exercise is necessary, so you must take time to exercise.