How does fasting work? Will fasting help clear my digestive system?

Not really. Fasting will not clear your digestive system. It will empty at it's own rate. If you fast long enough it may empty somewhat but your metabolism will slow and eventually your body will begin to consume your muscular tissue for energy.