The expelling of bacteria from the body. Important routes include the respiratory tract, genital tract, and intestinal tract.