The possible mechanism of eco-friendly synthesized nanoparticles on hazardous dyes degradation