Baking soda: This is also a good absorbent. Put a generous amount of baking soda in an uncovered container (the size of the container depends on the size of the confined area) and leave it for several days. Remove the baking soda and replace it with new one and leave it for a couple of days. Continue replacing the baking soda until it has cleared the trash can smell.
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.