The United States and the Taliban have reached a truce agreement that will take effect 'very soon' and could lead to withdrawals of American troops from Afghanistan, a senior U.S official said Friday.

The official said the agreement for a seven-day 'reduction in violence' to be followed by the start of all-Afghan peace talks within 10 days is 'very specific' and covers the entire country including Afghan forces.

'The reduction of violence agreement is very specific. It's nationwide and it includes the Afghans,' said the official, adding that it applies to 'everything. Roadside bombs, suicide bombs, rocket attacks is all written out.'

Exactly when the 'truce' would begin was not announced.

The prospect of a deal gives President Donald Trump the opportunity to make good on his promise to remove U.S. troops from Afghanistan.

The U.S. and allies have been fighting there since October 2001, following the Sept. 11 attacks, which Al Qaeda operatives plotted from Afghanistan, where they had obtained sanctuary.

U.S. negotiators led by Zalmay Khalilzad have spent weeks meeting with counterparts in Qatar seeking to hammer out a deal which could hold.

The dramatic development comes months after Trump cancelled peace talks at Camp David in September after the Taliban claimed credit for an attack in Kabul.

That set negotiators scrambling to rebuild trust and try to put a deal back together. The U.S. currently has about 13,000 troops in Afghanistan.

Secretary of State Mike Pompeo, left, shakes hands with Afghan President Ashraf Ghani,during the 56th Munich Security Conference (MSC) in Munich, southern Germany, on Friday, Feb. 14, 2020. The two discussed a peace deal with the Taliban

U.S. troops patrol at an Afghan National Army (ANA) Base in Logar province, Afghanistan August 7, 2018. American forces have been fighting in Afghanistan since October 2001

U.S. Secretary for Defense Mark Esper speaks during a press conference on the first day of the Munich Security Conference in Munich, Germany, Friday, Feb. 14, 2020. (AP Photo/Jens Meyer)b

Trump said Thursday there was a 'good chance' of a deal.

'I think we're very close,' Trump told Geraldo Rivera on a podcast interview. ;I think there's a good chance that we'll have a deal ... We're going to know over the next two weeks,' he said.

Secretary of State Mike Pompeo and Defense Secretary Mark Esper met Friday with Afghanistan's President Ashraf Ghani amid signs that a truce between the United States and the Taliban is imminent.

Pompeo and Esper met Ghani on the sidelines of an international security forum in Munich as officials said a 'reduction in violence' agreement is on the table and could be announced as early as the weekend.

President Donald Trump has agreed in principle to the deal, which could lead to the start of significant U.S. troop withdrawals from Afghanistan, according to U.S. officials.

'We are working to finally end America's longest war and bring our troops back home,' Trump said in his State of the Union speech. He said Thursday the sides were close

Afghan security forces inspect the scene after a suicide attack targeted a checkpoint in downtown Kabul, Afghanistan, 05 September 2019

National army soldiers arrive at the site of explosion near the military academy in Kabul, Afghanistan, Tuesday, Feb. 11, 2020. The explosion occurred early Tuesday near the military academy in a southern neighborhood of the Afghan capital, a government spokesman said

People who were injured in a bomb explosion outside a polling station, receive medical treatment at a hospital in Kandahar, Afghanistan, 28 September 2019. At least 16 people including a police were injured in the incident

The final details were hammered out in recent days by U.S. special envoy for Afghanistan Zalmay Khalilzad and Taliban representatives in Doha, Qatar. Khalilzad was in Munich and attended Pompeo and Esper's meeting as did Gen. Scott Miller, the commander of the U.S.-led international force in Afghanistan.

People familiar with the plan's outlines say it calls for the successful conclusion of the weeklong truce to be followed within 10 days by the start of all-Afghan negotiations to set the road map for the country's political future.

U.S. officials have brushed aside claims that a Taliban ultimatum forced their hand. And they noted that, despite Trump's campaign pledge to withdraw American troops from Afghanistan and elsewhere, the Republican president has nixed previous deals that appeared close in response to attacks on U.S. forces.

Trump addressed the prospect of peace during his State of the Union speech last month.

'We are working to finally end America's longest war and bring our troops back home,' Trump said.

He also repeated a statement that carried with it a warning of U.S. might. 'I am not looking to kill hundreds of thousands of people in Afghanistan, many of them totally innocent.'

'It is also not our function to serve other nations as a law enforcement agency. These are war-fighters, the best in the world, and they either want to fight to win or not fight at all,' said Trump, expressing his frustration with a semi-permanent force propping up the Afghan government.