If they sold it off to a separate company and that company had the intension of selling it, then it would be inventory, and inventory is not taxed here. But, that second company is paying tax on the property value, equipment they use for running the business, employees, etc., so it might cost them more to have a separate company rather than just getting rid of it.
I deliberately set up the question in such a way that most anyone would assume that the second company has a its own facility, its own staff, it's own bills, etc. but that does not necessarily have to be the case I think.
At my day job I work for a Logistics company that has several entities. All owned by the same people but there are at least 5 different company names being thrown around. One is for trucking, one for packaging, and a couple more for various other things. I don't know the specifics but it seems some of the demarcation lines are more imaginary than others. On the side I own (am) a single-member LLC where I go into manufacturing plants and troubleshoot machines. I have a few customers who lease space to other, smaller companies that operate under the same roof, sometimes without walls between them; the unknowing observer wouldn't realize they were looking at two completely different operations, different unrelated companies. My last day job was company that made subsea tools but one corner of the facility was leased to a Formula1 team, so there were race cars coming in and out of our shop every week. At my current day job, one of our facilities has half of the building leased to a company that processes sugar while another facility has a third leased to a company that ships beer. My favorite gas station has a Mexican drive-through operating out of a back room. Often Taco Bell and KFC will share a facility. Point is, two companies (with or without joint ownership) operating under one roof is definitely "a thing."
The main company and the second company could be under the same roof, maybe even share the same employees. Clock out, take two steps to the left and clock in on a different time clock (if that's even necessary). The second company could lease space from the main company. Left hand pays the right hand, it's all clearly documented on paper. Essentially the main company just moves machines into the corner (if that's even necessary), throws a tarp over the top and mothballs underneath, calls it "stock" instead of "an asset" and everything looks good on paper. The machines were sold to an overhauler with a massive backlog of work, meaning they won't get around to the overhaul for maybe 3 years, during which time the original company might experience changing demands and be willing to buy back the equipment as-is, for the same price they sold it for (or for way less, or for several times more, whatever looks best on paper - after all, it's just the right hand paying the left hand).
I'm sure it's probably not that simple but with a well funded legal team it seems any kind of ethically gray shenanigans are possible in this country. It's pretty ridiculous actually, how we keep passing these asinine and poorly thought out laws, legal system growing ever larger and more complicated, while legal ferrets keep digging ever more convoluted tunnels around them. It becomes a system where you can do whatever the hell you want, if you have money. I think throwing away machines because government incentivized it is just laziness, or an indicator that the company isn't as well funded as it might seem, they can't even afford legal freedom.