How do mammals excrete?

Okay, the answer I got for this question was that mammals excrete in two ways. The first was in during the digestive system. It simply means that the waste goes through the body and out the anus. The other way is that they go through chemical waste. This means whenever a mammal breathes for example, you breathe in air but you must breathe out the chemical carbon dioxide from the body.