Write a function in Python that takes an integer and returns an array of digits of the number except the last two digits.
8765
def remove_last_two_digits(num):
    num = str(num)
    return [int(x) for x in num[:-2]]