### Comment:
Peel outer layers off to remove the rotting layers and make sure the surface is a single, undamaged layer.  The onion will be much more resistant to further rotting with the rotting layers removed and an undamaged surface layer. 
  
 If an onion is starting to rot in your pantry, you can extend its shelf life by a few weeks this way.

### REPLY:
I never realized the extent of this kind of chicanery. (Sadly this article doesn't mention onions.) 
  
 https://www.nbcnews.com/health/health-news/second-chance-faulty-food-fda-calls-it-reconditioning-flna1C6436812

### END.