The city slapped the “lox” on famed Upper West Side deli Barney Greengrass this week, citing the eatery for a host of sanitary violations — including mice and roaches, The Post has learned.

The Jewish deli, which bills itself “The Sturgeon King,” was shuttered Thursday after Department of Health inspectors discovered six violations, five of them critical, including not keeping food hot enough, mice, live roaches and lack of vermin-proofing, records show.

In addition, employee clothes were “soiled,” and food was not protected from contamination.

The Amsterdam Avenue cash-only restaurant, which opened its doors in 1908, remained closed Saturday “By Order of the Commissioner of Health and Mental Hygiene,” a sign plastered on the door read.

The deli was recently inspected in June, when health department personnel also found evidence of mice — a problem the shop has had dating back to 2016, the records show.

“I left the place to my husband for a few days, and he left it dirty. We just have to clean it up a bit, and we’ll be back by Tuesday good as new,” an employee was overheard saying outside.

The Department of Health did not immediately return request for comment.