Answer
Barbara Windsor's last appearance in EastEnders was in the episode Peggy Mitchell's Grand Exit. This episode aired on 17 September 2010 and saw Peggy die after suffering a heart attack. Peggy's death was a major event in the soap and was watched by over 10 million viewers.