The New York City Board of Elections reportedly admitted violating election laws by purging 200,000 voters from its rolls before last year’s presidential primary.

The board agreed with the activist group Common Cause to take steps to restore voter rights and prevent future illegal purges, a draft settlement obtained by WNYC said. The problem was worst in Brooklyn, where 117,000 voters were purged.

Common Cause had filed a federal lawsuit on behalf of disenfranchised voters, and state Attorney General Eric Schneiderman joined as a co-plaintiff.

The tentative settlement is expected to be filed in Brooklyn federal court on Wednesday. The elections board declined to comment.