Poya Asbaghi has left his role as Barnsley FC head coach by mutual consent, with Martin Devaney taking over as caretaker manager for the rest of the season.
The Swede was initially expected to take charge of the final three games of the Championship season, following Friday’s relegation.
But there has been a change of minds in the last 36 hours.
Asbaghi was likely to leave in the summer, with a break clause in his contract in the club’s favour.
His assistant Ferran Sibila has also left the club.
Devaney - who played 176 games for Barnsley and has been a first team support coach since Christmas - will take charge for the last three games starting with Tuesday’s home game with Blackpool. He will be assisted by coach Jo Laumann and another ex-Red Tom Harban who has been under 18s coach.
Asbaghi took over in November, with Barnsley in the relegation zone having won two of 18 games, he won four of 25 matches. His win percentage is the second lowest of any permanent Reds boss, behind his predecessor Markus Schopp.
Asbaghi told the club website: “I want to thank everybody at Oakwell for their time and efforts over the last months, this of course includes players, fans and staff. It’s been a real privilege to work in Barnsley and I wish everybody all the very best for the upcoming seasons.”
Chief executive Khaled El-Ahmad told the club website: "On behalf of Barnsley Football Club, I would like to thank both Poya and Ferran for their hard work and professionalism during a difficult time.
“Our search for a new coach has already started and an announcement will follow once that process is concluded.”