to have almost nothing left of sth
be at the end of sth
I'm at the end of my patience.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition