In another episode, the Enterprise used a solar flare (definitely flames, not plasma) to destroy a Borg ship.
So I have two questions:
1) How much energy is released in a large solar flare, or a large solar ejection? Does this make Star Trek ships very weak, or could such a flare take out a Star Destroyer? How about SSD? Death Star (unlikely

2) Why don't they use this more often? Wouldn't it be the ultimate weapon (discounting the Death Star), where a single ship can decloak, fly past a sun, cause a solar flare, and wipe out any shipyard, starbase, or even PLANET that they want to? What would prevent anyone from using this to destroy any planet they feel like?