Sutton reserve goalkeeper Wayne Shaw has agreed to resign from the club after eating a pie in the dugout during Monday's FA Cup defeat to Arsenal.
A betting row erupted as a result of the incident and m anager Paul Doswell confirmed Shaw's departure on Tuesday afternoon.
Shaw was shown on television tucking into the snack towards the end of the 2-0 loss before admitting after the game he was aware that a bookmaker was offering odds on him to do so.
"Wayne has offered his resignation to the chairman this afternoon and that has been accepted. It's a very sad end to what was a very good story," Doswell told Sky News.
Both the Football Association and the Gambling Commission announced on Tuesday that they would carry out independent investigations into the publicity stunt.
Sun Bets tweeted after the game that they had paid out a "five-figure sum" on a bet that 46-year-old Shaw would be shown eating a pie.