Walmart plans to stop selling e-cigarettes in the wake of the recent controversy over how safe the alternative smoking devices are, according to an internal memo obtained by CNBC.

“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,” the company reportedly said in the memo. “We will complete our exit after selling through current inventory.”

E-cigarettes, including the Juul products, have been under increasing scrutiny as feds launch criminal probes into vaping-related illnesses nationwide.

States from New York to Michigan have banned flavored e-cigarettes in an attempt to curb the growing use of the nicotine products — and several lawsuits have already been filed again maker Juul.

In addition, the Trump administration last week announced plans to remove all flavored e-cigarettes from store shelves, as officials warned that sweet flavors had drawn millions of children into nicotine addiction.

Last week, Amazon said it took down vape paraphernalia in line with its policies, though the company did not specify the exact products it removed.

Walmart had already begun distancing itself from nicotine products earlier this year. The company raised the age to buy tobacco products in its US stores to 21, and stopped selling fruit- and dessert-flavored e-cigarettes. The move came after the Food and Drug Administration called out the company for illegally selling tobacco products to minors.

With Post wires