Pennsylvania Attorney General Kathleen Kane announced her resignation Tuesday afternoon, setting the wheels in motion for the Office of Attorney General to move on from years of ­dysfunction as she turns her attention to appealing her criminal conviction. But, as her successor, Bruce L. Castor Jr., said at a press conference, some of the mess Kane left behind won’t be so easily wiped away.

With her resignation, which is set to become effective at the end of business Wednesday, Kane, the first Democrat to be elected attorney general, will be turning over power to Castor, a Republican.