The process of removing metabolic wastes.