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.
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.