Elimination of harmful substances, the end product being a fertilizer