Managing the situation is best cause he's doing it when you aren't in the room. So removing all food from the counter and putting the trashcan in a closet? And/or keeping the dog out of the kitchen at night (or in you room? babygate?)
No matter how mad you get when you have to clean up the mess, punishing the dog at that time is too late for any training. Specially cause the dog already more then rewarded itself the entire time it was eating everything and making a mess.
Plus he can get really sick going thru the trash. So not only are you mad at the mess you may have and expensive vet bill on top of it all.
MACH3 Bretta Lee Wildhaus MXG MJG MXF MFB TQX HIT CGC TC
Glory B Wildhaus AX, AXJ, XF
plus Miss Osin Blue Wildhaus
"How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?." ANONYMOUS