Tea: If you don't like coffee, you can use tea bags instead. Just place 2-3 tea bags inside the confined space. The tea leaves in the bags will not only absorb the trash can smell but will also release the natural aroma of tea.
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.