The direct answer to your direct question - now that we know that you're talking about depreciation recapture - is "you can't" except if you properly do a Sec 1031 ("Starker") exchange.
Of course that really doesn't "avoid" the recapture, but it does delay it.
Tom Young