The retail giant's restructuring comes after it announced a declining profit outlook last week.
High food prices are affecting how much customers spend on apparel, according to Walmart, which has announced plans to cut clothing prices.
The company apologized following criticism of the Juneteenth-themed product and said it would "remove items as appropriate."