def METHOD_NAME(endpoint):
    """Logout from the platform and delete credentials."""
    from renku.command.login import logout_command
    communicator = ClickCallback()
    logout_command().with_communicator(communicator).build().execute(endpoint=endpoint)
    click.secho("Successfully logged out.", fg=color.GREEN)