Democratic National Committee Chair Debbie Wasserman Schultz. (Paul Sancya/AP)

This week in Philadelphia should have been a celebration of Debbie Wasserman Schultz's tenure as head of the Democratic National Committee. Hillary Clinton at the top of the ticket. Tim Kaine as vice-presidential running mate. Bernie Sanders, mostly, on board. Donald Trump as the Republican nominee.

Everything was coming up DWS — finally.

Then WikiLeaks released more than 20,000 internal emails from Wasserman Schultz and her top staffers. The emails suggest a Democratic National Committee that was something short of totally neutral in the long primary fight between Clinton and Sanders.

The most problematic exchange? A suggestion by one DNC official that the party find a way to raise questions about Sanders's religious faith (or alleged lack thereof). It read in part:

It might may [sic] no difference, but for KY and WVA can we get someone to ask his belief," the email from "marshall@dnc.org" says. "Does he believe in a God. He had skated on saying he has a Jewish heritage. I think I read he is an atheist. This could make several points difference with my peeps.

Uh oh.

For Sanders and his supporters, the emails are evidence of what they long suspected — that Wasserman Schultz and her team at the DNC always had a finger on the scale for Clinton.

"I don't think she is qualified to be the chair of the DNC not only for these awful emails, which revealed the prejudice of the DNC, but also because we need a party that reaches out to working people and young people, and I don't think her leadership style is doing that," Sanders told CNN on Sunday.

Amid fears of a Sanders revolt at the Democratic National Convention in Philadelphia, news broke late Saturday that Wasserman Schultz would not have any speaking role at the event — a remarkable snub for a sitting party chair.

But, that wasn't the end. By Sunday night, Wasserman Schultz was gone -- or had announced she would be gone, at least.

"The best way for me to accomplish those goals is to step down as party chair at the end of this convention," said Wasserman Schultz in a statement. "As party chair, this week I will open and close the Convention and I will address our delegates about the stakes involved in this election not only for Democrats, but for all Americans."

Her triumph turned to her tragedy. Wasserman Schultz's crowning week as party chair will be her last.