Amazon has banned sales of racist gear featuring Nazi swastikas for children and adults amid pressure from US lawmakers and nonprofit groups.

Just weeks prior, the online shopping titan owned by the world’s richest man, Jeff Bezos, was blasted by a Democrat from Minnesota for profiting from Nazi items sold by hate groups.

They included a cross-burning onesie for kids (a practice associated with the Ku Klux Klan), stickers featuring nooses and lynching imagery, a “noosed costume” and Nazi swastika jewelry.

In a letter addressed to Bezos, Rep. Keith Ellison (D-Minn.) said he was shocked that hate groups identified by nonprofits were openly selling their wares on Amazon — with the site taking a cut of sales.

“I am disturbed that such a powerful corporation is materially fueling the rise of hate groups in our country,” wrote Ellison in the message last month.

In its response, Amazon said it had removed products that violated its policy against product listings that promoted hatred, violence or discrimination, reports the New York Times.

“We have reviewed the products and content referenced in your letter and removed the listings that were found in violation of our policies and permanently blocked the seller accounts that were in violation of Amazon policy,” Brian Huseman, Amazon’s vice president for public policy, wrote in the letter.

“We are also reviewing the seller accounts for potential suspension.”

Ellison also raised the alarm over Amazon pocketing cash from sales of white supremacist literature on its Kindle e-books store after two US nonprofits spotted an illustrated children’s book by the founder of the American Nazi Party, George Lincoln Rockwell, on the site.

But Amazon has thus far resisted calls for it to reveal how much money it has made from the sale of racist products.

Amazon does not reveal its profits from individual publishers or product listings, Huseman said in his letter.

But it seems the Nazi items were still appearing in searches on the site late Thursday, as Amazon’s automated systems and human staffers scrambled to remove them.

In a statement, an Amazon spokeswoman said: “Sellers are expected to comply with our policies and we immediately investigate any reported violations. The items referenced by Representative Ellison were previously reviewed and we removed those that violated our policies well before we received his letter.”

This isn’t the first time Amazon has come under fire for selling extremist gear on its online store.

In May, Bezos & Co. were slammed by British lawmakers for selling bomb-making manuals and terrorist recruitment material.