Marks the entire flash or a single flash entry to be discarded by the end
of the current action:
flash.discard# discard the entire flash at the end of the current actionflash.discard(:warning)# discard only the "warning" entry at the end of the current action
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 173
def discard(k = nil)
use(k)
end