Walmart, the world's largest retailer, will stop selling e-cigarettes in its Walmart and Sam's Club locations in the U.S. amid "regulatory complexity" and "uncertainty" surrounding the industry, the company said in an internal memo Friday.

The company is the latest to pull back from the industry. Federal regulators said they will soon ban flavored e-cigarettes, while some nations have outlawed the products altogether, saying they pose too much of a health risk.

The industry has come under fire as teen vaping rates in the U.S. soar to record highs and federal health officials sound alarms over an outbreak of a mysterious vaping-related lung disease that's killed at least eight people in recent weeks.

"Given the growing federal, state and local regulatory complexity and uncertainty regarding e-cigarettes, we plan to discontinue the sale of electronic nicotine delivery products at all Walmart and Sam's Club U.S. locations," the company said in a memo to local managers. "We will complete our exit after selling through current inventory."