Their discharge comes on the back of a decision by the state to have them released.
Recommended articles
The thirteen are part of an initial 32 charged with murder during the last hearing of the case.
The prosecution told the court that their investigations into the matter informed the decision.
He further indicated that the freed individuals will likely serve as witnesses in the case.
The rest of the 19 suspects which include one woman are still facing the charges of murder and conspiracy to commit murder.
Maxwell Adam Mahama was lynched on Monday, May 29, 2017, by residents of Denkyira Obuasi on suspicion that he was an armed robber.
A total of 58 suspects were subsequently arrested in connection with the murder.