The district attorney is authorized to act on behalf of the county to vacate, compromise, or prosecute bond forfeitures as may be authorized by the laws of this state, and is further authorized to do all acts to carry forth the intent and purpose of this section.