Barry Wilson admits being knocked out of the Scottish Cup by junior side Bo'ness was a major factor in his decision to quit as Elgin City manager.
Wilson resigned on Monday following City's 4-1 home defeat by Queen's Park.
But when asked if crashing out of the Scottish Cup against Bo'ness United had prompted his decision, the 42-year-old said: "You're bang on.
"That was as embarrassed as I've ever felt in my football career that night, and Saturday was the last straw."
"Losing a 3-0 lead at half time shouldn't have happened and that hurt me," added Wilson, who starred for Ross County, Inverness Caledonian Thistle and Queen of the South during a playing career that spanned two decades.
"We kept going and were not out of the tie, but in the replay we scored four goals and still went out of the Cup, after scoring eight goals in two games against a junior team, without being disrespectful to them.
|Former Elgin City manager Barry Wilson|
|"At the moment Elgin are sitting bottom of League Two so it's not going to be easy to get a job anyway, but it's not one I'd anticipate happening in the near future."|
"Maybe some players just don't hurt enough after a bad result, but I'm not going to put the blame on them, they'll know they've let themselves down more than they let me down."
Wilson took the Elgin job in January 2014 and he leaves them with the side bottom of League Two, three points adrift of East Stirlingshire.
"Results weren't good enough, after a positive start to the season when we were playing good football and winning a few games," he added.
"It was starting to affect me personally and I just thought now is the time. I tried everything that I knew but unfortunately I couldn't get it to work.
"There's a little bit of relief because I've been thinking about it for a few weeks. It was starting to affect my family life and I can't have that."
Wilson refused to rule out a return to management in the future, but he is set for a "well-earned" break from the game.
"At the moment Elgin are sitting bottom of League Two so it's not going to be easy to get a job anyway, but it's not one I'd anticipate happening in the near future," he said.