If you cut a problem food out that was irirtating that gut lining and causing inflammation, then a numner of weeks for mucus to settle would be very reasonable. I used to have a rule when looking at my kids nappies... only worry abous mucus in the nappy if its more than 50% of the stool and is also accompanied by other symptoms like general irritation through the day, fussy eating, sleeplessness, prolonged night waking etc