I have a warning flash message in Flask that that appears before the user tries to submit a form based on background information about the user. If the user goes ahead and submits the form the way they were warned not to, they are prevented and see a second flash message. I'd like to clear the first flash message before the user sees the second.
I've read the Flask documentation on flash messages and tried to google for the answer. I also read some of the Flask source code. No solution jumps out at me.
Can anyone help me figure out how to clear a flash message?