Mint Extract: If you favor neither the smell of citrus nor vanilla, you can perhaps use mint extract instead. Pour several drops of mint extract on a couple of cotton wools. Toss the cotton wools inside the confined space and leave them for a couple of days.
Garbage is such a general term that is it difficult for most cleaning and air freshening products to be able to produce a cleaning product for effective garbage odor removal. Trash can smells can permeate anywhere, especially considering that it can contain some of the deadliest and most stubborn smells in one place.