def METHOD_NAME(self, uid_list: str, expunge=True):
    """delete a range of messages (imap-syntax).
    If expunge is true, perform the expunge-operation
    to make sure the messages are really gone and not
    just flagged as deleted.
    """
    self.conn.client.uid("STORE", uid_list, "+FLAGS", r"(\Deleted)")
    if expunge:
        self.conn.expunge()