"python, remove all occurrences of string in list",new_array = [x for x in main_array if x not in second_array]