Removing alcohol from your diet for four weeks can also help to improve your liver function as your liver will start to shed excess fat. If your liver function is not too badly affected by alcohol, it can recover within 4-8 weeks.