Ben Foster has announced his retirement from professional football, with Wrexham confirming his decision in a statement.
Wrexham released a statement on Monday as they thanked the goalkeeper for his services.
"All the very best, @BenFoster - thank you very much for your contributions in both spells with the Football Club, and congratulations on an incredible career," the club wrote on social media.
His decision to walk away from football comes after Wrexham conceded five goals last weekend in their thrilling 5-5 draw with Swindow Town.
The 40-year-old spoke to manager Phil Parkinson after Saturday's game and informed him of his intention to retire.
Speaking about his decision to call time on his career, he said: "The honest truth is that my performances this season haven’t reached the level I demand of myself and I feel that now is the right time to retire.
"At the forefront of my mind when making this decision, was not only what was best for me but also the Club, and making the decision now gives the Club every opportunity to assess their options before the window closes.
"Wrexham will always have a special place in my heart."
Foster came out of retirement last March to sign a short-term contract with the then-National League side.
He helped the Welsh outfit earn promotion back to the Football League, with the former Manchester United man signing a one-year contract this summer.
But after just five games into the new season, Foster has decided to walk away from football.
He made 12 appearances for Ryan Reynolds and Rob McElhenney's team and won the National League title last season.
Mark Howard, 36, played in Wrexham's Carabao Cup victory over Wigan Athletic earlier this month. The club also have Rob Lainton on their books.
Parkinson, Reynolds and McElhenney have until September 1 to bring in a replacement goalkeeper.