Bedbugs were found inside a South Carolina courthouse last week, but officials say exterminators eradicated the problem .

>> Read more trending news

York County Clerk of Court David Hamilton said the bedbugs were found in private offices and not in public areas at the Moss Justice Center in York.

Solicitor Kevin Brackett told The Herald of Rock Hill that the bugs were found in the public defender's office on the first floor and the prosecutors' offices on the second floor. They are on the same end of the building.

Employees were kept out of the offices until special heating instruments could be brought in to kill the bedbugs.

Brackett says prosecutors worked out of conference rooms, a law library and a jury room while awaiting the exterminators.

>> Related: Bedbugs love your dirty laundry, new study says

Officials told The Herald that the extermination efforts worked and that the office are now free of the pests.