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.
Trash can odors are difficult odors to remove for most cleaning products. Trash cans, trash bins, garbage cans, trash compactors, garbage disposals, roll out containers and trash dumpsters all have consistent, persistent and lingering odors after you remove the trash and refuse from the receptacle.