In April 16, 2020 file photo, a picture shows the Amazon logo at the entrance area of the Amazon logistics center in Lauwin-Planque, northern France. (DENIS CHARLET / AFP)

Amazon.com Inc will cut some jobs in the United States, Canada and Costa Rica by the end of Wednesday as part of its plan to lay off 18,000 employees, the e-commerce giant said in a memo to staff seen by Reuters.

The layoffs are the latest in the US technology sector, with companies cutting their bloated workforce and slashing costs to reverse pandemic-era excesses and prepare for a worsening global economy.

The company is terminating 2,300 employees in Seattle and Bellevue, according to an update on the Worker Adjustment and Retraining Notification site. The US labor law requires companies planning a mass layoff to inform employees 60 days before the closure.

READ MORE: Amazon secures $8 billion term loan

Amazon.com Chief Executive Andy Jassy said earlier this month the cuts, about 6 percent of the company's roughly 300,000 corporate employees, would mostly impact the e-commerce and human resources divisions. 

Microsoft said earlier on Wednesday it would cut about 10,000 jobs and take a $1.2-billion charge.