The bug spray I use in the kitchen is Great Value Cleaner with Bleach, 32 fl oz $1.48
If you see some fruit flies in your trash spray them and the peels or whatever with this, whatever brand you choose, if you are using a lot of vegetables then put the peelings and bits in sandwich bags.
Thanks, I’ll remember it. We haven’t seen anything in the trash cans; just flying around the kitchen.