Photo/IllutrationPhilippine President Rodrigo Duterte delivers a speech at the San Isidro Central School during the distribution of benefits to former rebels in Leyte province, southern Philippines, on Jan. 23. (Malacanang Presidential Photographers Division via AP)

MANILA--The Philippine president has renewed a threat to terminate an accord that allows American forces to train in the country unless Washington restored a visa of a political ally linked to human rights violations.

President Rodrigo Duterte said in an expletives-laced speech Thursday night that he would give notice to the United States terminating the Visiting Forces Agreement, known by its acronym VFA, if the reported cancellation of the entry visa of Senator Ronald dela Rosa was not corrected.

“I’m warning you ... if you won’t do the correction on this, I will terminate the ... Visiting Forces Agreement. I’ll end that son of a bitch,” Duterte said in televised remarks in central Leyte province.

The security accord, which took effect in 1999, provides the legal cover for American troops to enter the Philippines for joint training with Filipino troops.

A separate defense pact subsequently signed by the treaty allies in 2014, the Enhanced Defense Cooperation Agreement, allowed the extended stay of U.S. forces and authorized them to build and maintain barracks and other facilities in designated Philippine military camps.

There was no immediate reaction from U.S. officials. The Philippines’ Department of Justice said Friday it would study how the agreement’s abrogation could be done.

Senator Panfilo Lacson said the Supreme Court should soon respond to a petition asking whether the Senate’s consent is needed before the executive department can terminate a bilateral agreement or a treaty that senators had ratified. The Philippine Senate ratified the VFA after lengthy debates.

Duterte first threatened to abrogate the VFA in late 2016 after a U.S. aid agency put on hold funds for anti-poverty projects in the Philippines. The 74-year-old leader, who has been harshly critical of U.S. policies while often praising China and Russia, has walked back on his public threats before.

Despite Duterte’s critical stance, U.S.-Philippine defense ties have remained robust and joint military exercises even increased in numbers last year.

Aside from threatening to take down the VFA, Duterte said without elaborating that he would ban some U.S. senators from entering the Philippines. He apparently was referring to American senators who sought to ban unspecified Philippine officials from entering the United States for playing a role in the continued detention of opposition Senator Leila de Lima, a vocal critic of Duterte’s deadly campaign against illegal drugs.

The United States has not released any list of Philippine officials who would be banned from entering. Duterte, who has publicly accused de Lima of receiving money from drug traffickers and called for her detention, has been invited by U.S. President Donald Trump to attend a meeting for Southeast Asian heads of state in March.

Dela Rosa had enforced Duterte’s anti-drug crackdown as head of the national police starting in June 2016, when the president took office. The crackdown has left thousands of mostly poor drug suspects dead, alarming U.N. human rights advocates and Western governments, including the United States.

It also prompted critics to file complaints against Duterte for mass murder before the International Criminal Court. An ICC prosecutor has been examining the complaints.