If you want to cure someone of anorexia, you will usually have more success if you both eliminate the excessive exercise and address the eating behaviour at the same time.
For some reason, it seems as if each behaviour somehow supports the other, and to break the cycle, you have to address both.
Also if you or anyone has an eating disorder, take it seriously and seek treatment. Eating disorders have the highest death rate of any mental disorder.
1: When researchers restrict rats’ food intake while giving them unlimited access to a wheel, the rats start running excessively. Paradoxically, these rats opt to continue running rather than eat during the short intervals of time food is made available to them. If allowed, they will literally run themselves to death. (https://www.verywellmind.com/excessive-exercise-eating-disor...)