src/transformers/commands/user.py/LogoutCommand/run
class LogoutCommand:    def run(self):
        print(
            ANSI.red(
                "WARNING! `transformers-cli logout` is deprecated and will be removed in v5. Please use "
                "`huggingface-cli logout` instead."
            )
        )
        token = HfFolder.get_token()
        if token is None:
            print("Not logged in")
            exit()
        HfFolder.delete_token()
        self._api.logout(token)
        print("Successfully logged out.")