A solar flare (or solar plasma eruption) is an explosion in a star's atmosphere, that accelerates plasma into space at great speeds. By the 24th century, various techniques existed to trigger solar flares, including particle beams and electromagnetic pulses. The concentration of Cosmic rays that can accompany a solar flare can be measured on the Ritter scale.
In 2266, a solar flare accompanied by high levels of Cosmic rays was discharged by the sun in the Minarian star system. The USS Enterprise was forced to leave orbit around one of the Minarian planets to protect it's systems from the solar flare while its landing party of Kirk, Spock, and McCoy remained on the planet surface judging that the planets atmosphere would shield them from the flares effects. (TOS: "The Empath")
While investigating a Dyson sphere, the USS Enterprise-D is pulled inside the sphere and observes the unstable star within expelling a solar flare, which Data indicates as Magnitude 12, Class B. (TNG: "Relics")
In 2371, Grand Nagus Zek talked to a representative of planet which had been affected by solar flares, damaging its agriculture industry. The Ferengi leader agreed to provide the planet with Kohlanese barley. (DS9: "Prophet Motive")
In 2373, Lieutenant B'Elanna Torres listed a solar flare as one of many factors that could interfere with USS Voyager's attempt to bring the Barzan wormhole to them with verterons. (VOY: "False Profits")