A reason why diets affect this situation so much is two-fold. First, a diet affects microbiota, causing stagnation and proliferation of selected species. Second, the diet affects cells and its organelles, especially mitochondria. For example, some acquired mitochondrial damages can be reversed by a sufficient supply of vitamins and minerals in combination with the right balance of carbohydrates and fats in the diet.
It is worth to mention that one has to eliminate the initial disruption factor that caused the problem in the first place. Be it infection, poison, or something else. Otherwise, the chances of recovery are dim.