CARACAS/HOUSTON (Reuters) - Venezuela has ordered the removal of Rafael Ramirez, once a powerful oil minister and head of state oil company PDVSA, from his post as representative to the United Nations in New York, four sources with knowledge of the matter said on Wednesday.

FILE PHOTO: Venezuela's representative to the United Nations Rafael Ramirez is seen as he attends a meeting with Venezuela's Foreign Minister Jorge Arreaza (not pictured) during a meeting of accredited diplomatic teams in Caracas, Venezuela August 12, 2017. REUTERS/Carlos Garcia Rawlins/File Photo

Though the decision will not affect the OPEC nation’s struggling oil industry, it may help President Nicolas Maduro shore up his position in crisis-stricken Venezuela as the country heads toward presidential elections in 2018.

Ramirez, an increasingly vocal critic of Maduro in recent months, was seen by some as angling to be a presidential candidate as Maduro’s unpopular government and an economic crisis have fueled divisions with the ruling Socialist Party.

“He was fired last night,” said a source with knowledge of the information, who asked not to be identified. Maduro sent Ramirez to the U.N. in 2014 in a major demotion from his decade-long roles as oil minister and head of PDVSA.

Venezuela’s Information Ministry did not immediately respond to a request for comment. The United Nations has not received formal notification of Ramirez’s removal, a U.N. spokesman said.

Vice President Tareck El Aissami said on Wednesday that he hoped that Maduro will be re-elected in 2018, the clearest indication yet that the former bus driver will seek another term despite the economic crisis.

A separate source said that Ramirez had been summoned to present himself in Venezuela “in coming days.” That source said Ramirez had not been formally removed and that he was working at the United Nations on Wednesday.

However, he was not present when his turn to speak at a meeting on the rights of the Palestinian people came up, according to diplomatic sources at the meeting.

Two sources said Foreign Minister Jorge Arreaza traveled to New York this week. Another source said Ramirez tried to fight back and negotiate but was unable to.

‘THE STORM’

Ramirez has published several online opinion pieces this year criticizing the management of PDVSA for allowing oil production to plummet and admonishing the government for not taking measures to improve Venezuela’s tanking economy.

In one piece this month entitled the “The Storm,” he described his efforts in 2014 to help stabilize the economy, which Maduro’s allies perceived as an attack on the president, according to one source.

The article played up his close relationship with late President Hugo Chavez, who tasked Ramirez with leading oil sector nationalizations that began in 2007.

Slideshow ( 2 images )

Chavez’s deity-like status in the Socialist Party makes any relationship with him a commodity that officials often use when vying for influence or jockeying for position.

Maduro, who calls himself “the son of Chavez,” this week named a military officer to head PDVSA and promised to break up “mafias” that have stolen from the nation’s coffers. Some of his comments in a speech on Tuesday appeared aimed at Ramirez’ tenure.

“We’ve witnessed the rise of mafias that controlled important areas of our oil industry,” Maduro said in the speech during the swearing in of Major General Manuel Quevedo.

“They didn’t just steal from the country ... they believed themselves to be the owners of the oil industry.”

Venezuelan authorities last week arrested the acting president of its U.S.-based refiner Citgo and five of the subsidiary’s top executives as part of the corruption probe.

Since August the authorities have ordered the arrest of around 50 oil industry managers as part of the anti-corruption sweep.