Bill Peters resigned as the coach of the Calgary Flames, a National Hockey League team based in Alberta, on Friday, just days after he was accused of using a racial slur against a player a decade ago.

The general manager of the Flames, Brad Treliving, received and accepted a resignation letter from Peters on Friday morning. “Effective immediately, Bill Peters is no longer a member of the Calgary Flames organization,” he said in a statement on the team’s Twitter account.

The player, Akim Aliu, who was born in Nigeria, said on Twitter on Monday that when he was playing for a minor league team a decade ago, Peters, who is white, “dropped the N bomb several times toward me in the dressing room in my rookie year because he didn’t like my choice of music.”

Aliu said that he “rebelled” against the coach for using the slur, and that Peters retaliated by advising executives to demote Aliu to a lower-level league.