    def delete_user(self, user):
        """Hook called when a user is deleted

        Removes the user from the allowed_users set.
        Subclasses should call super to ensure the allowed_users set is updated.

        Args:
            user (User): The User wrapper object
        """
        self.allowed_users.discard(user.name)
Hook called when a user is deleted

Removes the user from the allowed_users set.
Subclasses should call super to ensure the allowed_users set is updated.

Args:
user (User): The User wrapper object
jupyterhub/auth.py