Casper Nilsson has been recalled from his loan spell with Partick Thistle.
The defender has also agreed a settlement with the club for the remaining months of his contract.
Technical director David Weir said, "We have recalled Casper, and this arrangement enables him to sign for a new club outside of the transfer window.
"We would like to thank Casper for his time with the club and wish him well for the future."