Mark Stimson has resigned as manager of Stevenage Borough.
Stimson won the FA Trophy with Stevenage last season
Stimson has been strongly linked with the vacancy at Gillingham, who recently were denied permission to speak to him.
Boro chairman Phil Wallace said: "Mark has resigned today and he's told us that he took legal advice before he made that decision.
"We don't know where he's going but he feels that this action is in the best interests of his future career and only history will show if he was right."
Wallace told his club's website: "I think it¿s been clear to everyone over the past few weeks that events outside the club have been the major contributor in his decision to resign, but we will have to wait and see what happens now.
Assistant manager Scott Barrett will take temporary charge of Stevenage for their Blue Square Premier game against promotion rivals Burton Albion on Thursday.
Stimson, 39, was appointed Stevenage manager at the start of last season following a successful spell in charge of Grays Athletic.