'Revokes (invalidates) this access token.'

def revoke(self):

    self.revoked = True
    self._commit()
    if self.user_id:
        try:
            tba = self._by_user_view()._byID(self.user_id)
            del tba[self._id]
        except (tdb_cassandra.NotFound, KeyError):
            pass
        else:
            tba._commit()
    hooks.get_hook('oauth2.revoke_token').call(token=self)
