Marseille confirms it has reached a deal for former president Pablo Longoria to leave after years of turmoil and no trophies.