New York City’s employee pension fund will sell all its holdings of three American retailers because they sell guns, and will continue to press ahead in its efforts to get Walmart and a division of the supermarket chain Kroger to remove guns from their store shelves.

The $59 billion New York City Employees’ Retirement System voted to divest itself of the shares on Thursday at its board of trustees meeting. The fund is selling shares in Dick’s Sporting Goods, Cabela’s and Big 5 Sporting Goods. The holdings, worth $10.5 million as of mid-June, are about 0.02 percent of the pension’s portfolio, according to a letter to the board of trustees from the city’s public advocate that was reviewed by The New York Times.

However small the divestment is on behalf of New York’s city employees, the move culminates a yearlong effort by some in city government to take action against the gun industry. The public advocate, Letitia James, proposed last July that the city’s pensions sell their holdings of Walmart. She has also filed complaints with the Securities and Exchange Commission about disclosures made by the gun makers Sturm, Ruger & Co. and Smith & Wesson, in addition to putting pressure on local banks to stop lending to gun makers.

Mayor Bill de Blasio has also called on New York’s pension funds to sell their holdings of companies that make assault rifles.