GDM: how to remove root from user list?

Due to a misconfiguration, I was locked out of my user account. I had to log into the root account to recover my user account. After logging in once, GDM lists the root account in the list of users. How can I remove the entry and hide root from the list?

sudo rm -f /var/lib/AccountsService/users/root