
Have/tan somebody’s hide
Metaphorical Threat
The phrase is often used metaphorically for a severe warning rather than an actual physical punishment. 
Colloquial Usage
This is a colloquial expression, not suitable for formal situations or written formal documents. 
Idiomatic Expression
Understand that it's an idiom; the words should not be taken literally, but as an expression with a figurative meaning. 