Controversial defender Youssef Rossi has completed his move from Dunfermline Athletic to Raja Casablanca.
Youssef Rossi had been forced to return to East End Park
The deal was confirmed after a three-week wait for the money to be placed in the Scottish club's bank account.
Dunfermline had been unwilling to cancel his registration until then because of his troublesome history.
The 30-year-old Morocco international, previously of Rennes, twice went AWOL from Dunfermline after his arrival at East End Park in 2000.
His on-going fines for non-attendance had reached a level where they were equal to his wages.
Rossi's return to his homeland and former club will be greeted with much relief at East End Park, as he had not made a first-team appearance for nearly two years.
He had joined Dunfermline while still recovering from a cruciate ligament injury picked up while on loan from Rennes to Dutch outfit NEC Nijmegen.
Dunfermline paid Rennes £160,000 and chairman John Yorkston was pleased to have recouped some of that money through the sale to Raja.
Rossi, linked with a move to Serie A outfit Udinese after some early impressive displays, went on to make only 25 first-team appearances for Dunfermline.
The Pars successfully applied for a worldwide ban on Rossi playing for another club after he returned to his homeland without permission.