I like a rather strong dilution of chlorine bleach for removing stains. Developer/silver stains can often be removed effectively by bleaching till the stain has visibly disappeared, rinsing and then soaking in regular fixer for a while. Silver gets rehalogenated and the fixer makes it water soluable. Works well on grungy developer trays.
Stains from developers, especially staining developers (pyro, amidol, etc.) are often nearly impossible to remove unless you use an abrasive. I find Comet cleanser good for some stains, and Bartender's Friend good for others (they use chlorine and oxalic acid respectively), plus a bit of elbow grease, of course.
That said, if stains are really stubborn, they are not going to affect your photographic processes at all. Removing them is purely cosmetic.
Best,
Doremus