To near the end of a supply of something; to be nearly running out.
To erode gradually and progressively.