It happened when I put an empty jar that I used to put my minced garlic to wash. For a week, my washing machine stank of garlic. Impossible to make it go away even after several washing cycle. So I started putting my used lemons by sticking them on the upper level and the smell quickly faded. What’s left of it was a very pleasant smell and my glasses and dishes looks and smells cleaner.
Lemon is a perfectly natural deodoriser. When I keep leftover onions (wrapped in cellophane, of course) in my refrigerator, I also put a used lemon next to it to prevent the unpleasant smell. It has now become a habit and it feels good to “recycle” an used object before getting rid of it.