or they have devalued to zero so they cannot be sold for tax purposes.
Well that's just stupid. In my country, if you sell property that's been depreciated to zero (or lower than its sale price in general), you're just supposed to record it as profit.
Of course when you've depreciated something to zero and it's not something like a car where it's registered with the government, you could just give it away to employees or friends.