What do I do please?

My LO hasn’t been taking anything but milk. He will eat 2 bites of food and then he wants his milk. I was advice to stop the milk altogether and see what happens. I haven’t given him milk today and he hasn’t eating all the food I offered! What do I do? I am worried he will not be able to sleep like this, I am frustrated with the milk thing. I want a way out.