'If `val` is True, purge `item` and return `item.purged`.'

def deserialize_purged(self, item, key, val, **context):

    new_purged = self.validate.bool(key, val)
    if (new_purged == item.purged):
        return item.purged
    if new_purged:
        self.manager.purge(item, flush=False)
    return item.purged
