Flanked by a towering 185,000 pages representing the federal regulatory code and a short pile of 20,000 pages (the code’s length a half-century ago), President Trump pledged to return us to the days of less red tape. Pointing to the colossal pile, which would take three years to even read, the president reiterated that “every unnecessary page” means “projects never get off the ground.”

Trump claims he’s already eliminated 22 rules for every new one imposed this past year. His critics dispute how many he’s actually scrapped, but no one denies he’s brought the steady stream of new rules nearly to a halt. This pause is buoying business optimism and the stock market.

What’s next? Rolling back rules on mining, manufacturing, oil exploration, banking — you name it. Even better, both the Trump administration and some Democrats in Congress want to relocate federal agencies from inside the DC Beltway to the nation’s heartland. Getting Washington out of Washington.

Imagine regulators having to rub elbows with the people being regulated.

There’s a lot of wisdom outside that DC bubble. Why should so much federal management be concentrated far from the industries and people affected?

Earlier this year, the House Oversight and Government Reform Committee voted to “Divest DC” and identify agencies easiest to move. The idea has bipartisan support. Rep. Tim Ryan (D-Ohio) sees it as a way to repopulate economically depressed cities that offer cheaper office space and housing, less traffic and lower cost of living for federal workers. Think Cleveland, Buffalo, Syracuse or Detroit, to name a few.

These struggling cities have universities, airports and other amenities of urban living without the astronomical cost of Washington, DC. Bringing federal agencies to these cities could revitalize their failing economies — as office supply stores, restaurants and home-builders spring up to meet the demands of federal workers and their families.

Taking the lead is Interior Secretary Ryan Zinke, currently developing plans to move three large public land-use agencies out west. Western governors like Colorado’s John Hickenlooper (D) are wooing Zinke. Gov. Cuomo (D) should take a page from that playbook and promote our upstate cities as suitable homes for federal agencies.

Of course, not all federal workers in DC will move willingly, and opponents of the idea claim it’s a covert way to shrink the federal workforce. All the better, says Philip Howard, chairman of Common Good. “Agencies should be moved out of DC and repopulated with people looking to help Americans, not stifle them.”

And not deliberately thwart the policies of the president. One of Trump’s biggest challenges is taming the “deep state” — now 2 million bureaucrats strong — burrowed deep in agencies across the capitol region. Dispersing it is one option.

The Washington bureaucracy appears determined to undermine the president’s agenda. Bureaucrats at State resist Trump’s historic recognition of Jerusalem as Israel’s capital, and Energy Department workers push for solar and wind power and zero-emission vehicles, never mind Trump’s commitment to fossil-fuel exploration.

Thank this permanent bureaucracy for the 185,000 pages of stifling regulations, the product of both Republican and Democratic administrations. Regardless of the merits of each specific regulation, impose enough of them, says Stephen Gold, CEO of a manufacturing industry group, and manufacturing “starts to sputter.”

The torrent has stopped since Trump took office. In his first six months, the feds issued 405 final rules — less than one-third the number issued by the Obama administration and less than one-quarter the number under George W. Bush in their first six months.

That’s just manufacturing. Overall, Trump said last Thursday, “the never-ending growth of red tape in America has come to a sudden, screeching and beautiful halt.”

Betsy McCaughey is a senior fellow at the London Center for Policy Research.