method

delete

rails latest stable - Class: ActionDispatch::Flash::FlashHash
delete(key)
public

Immediately deletes the single flash entry. Use this method when you want remove the message within the current action. See also #discard.