The U.S. military says the number of active duty troops deployed at the border with Mexico is down to about 2,600.

U.S. Northern Command said Friday about 1,200 are in California, 700 in Arizona and 700 in Texas.

President Donald Trump sent the troops just before the midterm election, citing a caravan of Central American migrants headed toward the border. At its peak, the operation included about 5,800 troops at the border or in staging areas.

The deployment was initially set to end on Dec. 15. But the Pentagon extended it to Jan. 31 at the request of the Department of Homeland Security.

Northern Command spokesman Bill Lewis said the cost of the deployment was still being compiled.

Northern Command headquarters are at Peterson Air Force Base, Colorado.