KP advocate general resigns