Walmart has pulled a t-shirt advocating violence against journalists from its online store after a professional organisation warned of the threat.

The t-shirt, which Walmart offered via a third party vendor called teespring.com, featured the phrase “Rope. Tree. Journalist. SOME ASSEMBLY REQUIRED”. In a letter to Walmart executives, the head of the Radio Television Digital News Association warned that products bearing the phrase “inflame the passions of those who either don’t like, or don’t understand, the news media”.

“At worst, they openly encourage violence targeting journalists,” executive director Dan Shelley wrote. “We believe they are particularly inflammatory within the context of today’s vitriolic political and ideological environment”.

Shortly thereafter, Mr Shelley wrote in an online post, he received an email from the retailer saying his warning had been “forwarded to the appropriate team to remove it”. The shirt has since disappeared from Walmart’s website and that of teespring.com.

“We are grateful for Walmart's swift action, but dismayed that it, and anyone else selling the shirt, would offer such an offensive and inflammatory product,” Shelley said in a statement.

A Walmart spokesperson noted in a statement that the shirt came through a third-party vendor but confirmed that the item “clearly violates our policy”.

Black Friday 2017 – in pictures Show all 8 1 /8 Black Friday 2017 – in pictures Black Friday 2017 – in pictures Shoppers reach out for television sets as they compete to purchase retail items on Black Friday at a store in Sao Paulo, Brazil Reuters Black Friday 2017 – in pictures Dozens of Brazilians reach for television sets in a store in Sao Paulo, Brazil EPA Black Friday 2017 – in pictures Dozens of Brazilians reach for television sets in a store in Sao Paulo EPA Black Friday 2017 – in pictures Brazilians reach for television sets in a store in Sao Paulo EPA Black Friday 2017 – in pictures People wait outside a department store in Thessaloniki, Greece AFP/Getty Black Friday 2017 – in pictures People wait in line outside of Best Buy in Norwalk, Connecticut November 23, 2017 for the store to open at 5PM on Thanksgiving Day to take advantage of the Black Friday sales AFP/Getty Black Friday 2017 – in pictures People shop at Macy's department store on Thanksgiving Day. Some stores began their 'Black Friday' sales earlier than the usual date Getty Black Friday 2017 – in pictures Shoppers are seen queuing for the opening of a Game discount store on 'Black Friday' at a shopping mall in Umhlanga, KwaZulu-Natal, Durban, South Africa Reuters

“We removed it as soon as it was brought to our attention, and are conducting a thorough review of the seller’s assortment,” the spokesperson said

The shirt appeared last year at rallies for Donald Trump’s presidential campaign. Mr Trump regularly excoriated journalists during those events, calling them liars and encouraging the crowd to jeer at reporters who had attended to cover his speeches.