def revoke_user_authentications( cls, user_id ): tokens = cls.fetch_keys_by_user_id( user_id ) if tokens: ndb.delete_multi( tokens )