How can I delete flash messages once a page has loaded using express?

So I was using express.js under node.js and came across this question. I have a login page where if you get a password/username wrong it will flash a message (Basic stuff using passport). But if you keep trying, the other error messages will stack (Only 1 of each, but they're still there after they're not relevant).

Is there a way i can delete the flash messages once they've been displayed? I'm using this flash.