def get_commands_to_remove_vpc_interface(portchannel, config_value):
    """Gets commands to remove a vpc config from a portchannel

    Args:
        portchannel (str): group number of the portchannel
        config_value (str): 'peer-link' or vpc number

    Returns:
        str: vpc group number that exists on that given portchannel
            or 'peer-link', if the portchannel is the peer-link

    Note:
        Specific for Ansible module(s).  Not to be called otherwise.

    """
    commands = []
    command = 'no vpc ' + config_value
    commands.append(command)
    commands.insert(0, 'interface port-channel' + portchannel)
    return commands