def METHOD_NAME(self, search):
    found = False
    logging.debug("Searching for %s to remove the line " % search)
    temp_config = []
    for index, line in enumerate(self.new_config):
        if line.lstrip().startswith("#"):
            continue
        if search not in line:
            temp_config.append(line)
    self.new_config = list(temp_config)