based upon -- "black texted covered by solid red layers and remove that so the text can be seen" -- Ill assume the use of the word "layers" here is referring to the apparent visual stacking of elements, not actual application-based layers like in Photoshop. Your "sample image" makes little sense because it clearly shows a red color with black text on top of it. There's nothing covered there at all. Except possibly the red area. So....
If the image is a flat file without any existing actual layers (like a jpg, png, gif, etc), all pixels have been merged and flattened. JPGs, PNGs, GIFs, et al do not have "layers" Everything is on the same pixel plane and there is no "stacking" of anything.
There is nothing behind the red area to "reveal" or see. Whatever may have been there when the image was created is removed when the pixels are merged and a non-layered image is saved, such as a jpg, png, gif, etc.
Television shows such as CSI have done a disservice by misinforming many. You can't "remove that car from the photo so you can see the license plate behind it". Pixel-based formats don't have any layers and it is impossible to arbitrarily remove elements in order to see what you think should be behind that element.