A constrained diet can be a useful tool in identifying which foods cause inflammation and other issues. I now live on a subset of the food groups based on a few dozen such N=1 cleanse experiments, with much improved health.
For my idiosyncratic combination of diabetes and gastroparesis the removal of carbs and fiber have been life savers. I fought hard against recognizing that though and had to prove it to myself with cleanses. But the difference was too dramatic for me to ignore.