Implement a function in Python to remove all instances of an item from a list.
[1, 2, 1, 3, 4, 1], 1
def remove_item(list, item):
    while item in list:
        list.remove(item)
    return list

result = remove_item([1, 2, 1, 3, 4, 1], 1)
print(result)