Walmart Inc. is cutting some store management jobs as it works to keep labor costs low while investing in higher wages and e-commerce efforts to fend off Amazon.com Inc.

The retailer this week is eliminating two department manager positions in some of its 4,700 U.S. stores, including managers who oversee cellphone departments and online-grocery pickup areas, according to a person familiar with the plans.

The...