'Removes each flag given from the message\'s flag set.
Note that this function does not check against dryrun settings,
so you need to ensure that it is never called in a
dryrun mode.
If a given flag is already removed, no action will be taken for that
flag.'

def deletemessageflags(self, uid, flags):

    newflags = (self.getmessageflags(uid) - flags)
    self.savemessageflags(uid, newflags)
