To quit a joint enterprise; e.g. divest one's capital, leave a job, or break a contract.
Similar in spirit to taking one's ball(s) and going home.
"As soon as this company goes public, you'd better believe I'm going to get my nuts out."
"Did I get my PhD? No way. Soon as I had enough credits for a Master's degree, I got my nuts outta there."