Former Manchester United and England midfielder Paul Scholes has left his role as Oldham boss after just 31 days.
The 44-year-old took on his first managerial job on 11 February and was only in charge of the League Two club for seven games, winning one.
Scholes said in a statement that he had decided to resign with “great regret”.
“It unfortunately became clear that I would not be able to operate as I intended and was led to believe prior to taking on the role,” he continued.
Scholes took over with the Latics 14th in the table, nine points off the play-offs, and leaves with them in the same position.
He began his reign with a 4-1 win over Yeovil Town, but three draws and two defeats followed prior to his final match, a 2-0 defeat by league leaders Lincoln City on Tuesday.
“I hoped to at the very least, see out my initial term of 18 months as the manager of a club I’ve supported all my life,” he said.
“The fans, players, my friends and family all knew how proud and excited I was to take this role.
“I wish the fans, the players and the staff – who have been tremendous – all the best for the rest of the season and will continue to watch and support the club as a fan.”
Scholes made 718 appearances for Manchester United, including 499 in the Premier League, and scored 155 goals in all competitions.
He initially announced his retirement at the end of the 2010-11 season, but made a comeback at the start of 2012 before finally calling time on his career having won 11 Premier League titles, three FA Cups, two League Cups, five Community Shields and two Champions Leagues.
He also played 66 times for England, retiring after Euro 2004 to focus on his club career.
Moroccan football agent Abdallah Lemsagam became Oldham owner in January 2018 and is now looking for his fifth manager, although Scholes’ predecessor Pete Wild was only in charge in a caretaker capacity.
A short club statement said: “Oldham Athletic Football Club can confirm that Paul Scholes has resigned from his position as first team manager with immediate effect.
“We would like to place on record our thanks to Paul for his efforts during his spell in charge of the club and would like to wish him well for the future.
“An update on the permanent replacement will be made as soon as possible.”
BBC Sport’s Simon Stone
It is understood Scholes took the job believing he would be allowed to manage the team as he saw fit.
He resisted any interference from the owner and in the end felt his situation was untenable.
Scholes is genuinely sad at how this has worked out. This was clearly never his intention when he took the job.