OTTAWA—A Liberal candidate running for a federal seat in the Greater Toronto Area has deleted a three-year-old tweet that was at odds with Justin Trudeau’s position on pipelines and oil sands.

“It’s time to landlock Alberta’s tar sands,” read the tweet posted by Karina Gould, the Liberal candidate for Burlington, on July 26, 2012.

The tweet then urged B.C. Premier Christy Clark to reject the Enbridge Northern Gateway pipeline project.

The Gould campaign did not immediately respond to a request for comment Tuesday morning, but Olivier Duchesneau, a spokesman for the national Liberal campaign, said the tweet has since been deleted.

“She removed the tweet (Monday) and posted a new one, so she agrees with the party position on pipelines,” Duschesneau said in an interview Tuesday.

The new tweet linked to an Oct. 30, 2013 speech Trudeau delivered to the Calgary Petroleum Club, in which he criticized the way the Conservative government had dealt with pipeline projects, rather than rejecting them.

The Trudeau Liberals are against the Northern Gateway project — as Clark has been since June 2013, unless five conditions the B.C. government laid out are met.

Duchesneau said the issue was with the language used in the tweet, which was originally associated with a petition from Avaaz.org.

“This was a campaign and a lot of people participated in the campaign and we obviously do not agree with the way people were talking about our natural resources,” said Duchesneau.

Trevor Peterson, the NDP candidate for the Saskatchewan riding of Cypress Hills—Grasslands, came under scrutiny this week for posting a nearly identical tweet on the same day.

Neither Peterson nor the NDP campaign responded to requests for comment Monday, but that tweet has also since been deleted.