def discard(self, key):
        # This overrides an inapplicable implementation in the superclass.
        try:
            self.remove(key)
        except KeyError:
            pass
        except OSError, e:
            if e.errno != errno.ENOENT:
                raise
If the keyed message exists, remove it.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Maildir.discard