
Take a hike
Informal Context
Use it casually among friends or in informal settings, but not in polite or professional situations. 
Showing Annoyance
It often expresses irritation or annoyance toward the other person. 
Not Literal
When used to tell someone to leave, it's not a literal suggestion to go for a walk. 