Starbucks just lost another high-level executive.

Its deputy general counsel in charge of ethics and compliance, Matthew Shay, quietly left the company on June 1, Starbucks confirmed to The Post.

A 21-year veteran, Shay, 60, told management he planned to retire in January, according to the company.

His exit comes on the heels of that of Chief Financial Officer Scott Maw, 50, whose surprise retirement plans were announced last week.

Starbucks founder and former chief executive Howard Schultz also just stepped down as executive chairman of the company.

The company is now conducting two top-level executive searches.

Shay’s departure is “another major blow from a personnel perspective to Starbucks,” restaurant analyst Mark Kalinowski said in a research report.

“Given what’s going on at Starbucks, more stability might be a good thing for the company,” Kalinowski told The Post.