XBee S2 dead for incorrect coding

,

I purchased 3 XBee S2 and by mistake I saved “ZIGBEE ROUTER / END SENSOR DEVICE”, now do not work more '.
How do I resume the factory settings?
thank you

Try following the steps outlined at http://knowledge.digi.com/articles/Knowledge_Base_Article/Recovery-procedure-for-ZigBee-XBees/?q=xbee+recovery&l=en_US&fs=Search&pn=1.