None of the 504 roles being cut are based at its stores, micro-fulfillment outlets or call centers, a company spokesperson told Reuters.

Walgreens, one of the largest U.S. pharmacies, has been looking to expand beyond its core business, with acquisitions of healthcare services operator VillageMD and urgent-care provider Summit Health.

The company, which lost market share to its rivals after closing several stores during the pandemic, is aiming to regain it by the end of fiscal year 2023 by reducing pay gap and increasing automation at fulfillment centers.

(Reporting by Sriparna Roy in Bengaluru; Editing by Vinay Dwivedi)