Depending on what device you have, you should be able to reflash the OEM software. For example, with Samsung Devices, you can go to Sammobile.com, and enter your model number and if your stock firmware is listed, just use Odin to flash it back to OEM.
Please register for our forums, and tell us more, we'd love to have you! Its Free & Easy!!
Chris