Claudio Ranieri will leave his job as Cagliari coach by mutual agreement, the Serie A club said on Tuesday, as local media reported that the 72-year-old was set to retire from football.