After 14 years, Scottish football's longest-serving manager is out following an independent misconduct investigation.