There is a school of thought in which you use expulsion of things from your body (defecating, urinaring, mucus, farting, sneezing, spitting, eyaculating and burping) to expulse bad things such as bad feelings, thoughts, etc.
You have to focus and think “all bad things are leaving my body” when you are doing this acts.