To "starve yourself" means to deny yourself of something, especially what you would do normally or naturally.
Example: I STARVED MYSELF OF FOOD, would mean = I refused to eat food even though I had access to it.
Starve is typically used for food, but can literally used for anything.
I hope part of your question was answered :)
Take care!