The locations weren't disclosed. The company recorded a $96 million impairment charge on its third-quarter earnings related to the 22 stores. It recorded a $135 million charge in the first quarter due to the 46 stores it closed during the second quarter.

CVS Health will close 22 "underperforming" drugstores early next year in addition to the 46 stores it shuttered earlier this year, the company said Wednesday in a regulatory filing.

"We believe these decisions will generate enhanced longer-term performance," Chief Financial Officer Eva Boratto told analysts Wednesday on a call reviewing third-quarter results. "Our real estate footprint remained very productive, and we will look for opportunities to further improve the performance in our portfolio."

Drugstores are under threat as consumers buy more pharmacy items online and new competitors sell prescription drugs online. For example, Costco and Instacart announced a plan Wednesday to test free one-hour prescription deliveries in California and Washington state.

Walgreens earlier this year said plans to close 200 stores. Amid upheaval in the industry, CVS executives have said they do not expect "meaningful" store closures.