A trailer was taken from Burton's Foods Ltd on Ty Coch Way, Cwmbran, Torfaen on 17 June.
The two men, from Liverpool and Cheshire, had been charged with theft.
A hearing at Newport Magistrates' Court heard a third man will appear in court in relation to the alleged theft on Friday.
The case against two men accused of stealing £20,000 of biscuits from the makers of Jammie Dodgers and Wagon Wheels has been dropped.