def cmd_unpublish(args):

    branch = fuzzy_match_branch(args.get(0))

    if not branch:
        print('Please specify a branch to unpublish:')
        display_available_branches()
        sys.exit()

    branch_names = get_branch_names(local=False)

    if branch not in branch_names:
        print("{0} isn't published. Use a branch that is.".format(
            colored.yellow(branch)))
        sys.exit(1)

    status_log(unpublish_branch, 'Unpublishing {0}.'.format(
        colored.yellow(branch)), branch)
Removes a published branch from the remote repository.
dataset/ETHPy150Open kennethreitz/legit/legit/cli.py/cmd_unpublish