The short answer is to remove the things that make odors: heat, moisture, food residue, and poor airflow. In summer, I’d treat an urban trash bin less like a container and more like a small ventilation and hygiene system. Start by keeping the bin as dry as possible. Never pour liquids or soggy food into it; drain containers, wrap or freeze smelly food scraps before disposal if your building allows it, and use compostable or heavy-duty liners only if they are changed often. For shared bins, ask the building manager to post a simple sign: bag food waste, no loose liquids, close the lid.
Clean the bin on a schedule, not only when it smells. In hot weather, a quick rinse with water and a little mild soap once or twice a week makes a big difference; for public bins, aim for at least weekly washing and more often around food stalls. Scrub the lid, handles, and corners, then let the bin dry fully in the sun before putting a new liner in. Sprinkle baking soda or a small amount of activated charcoal at the bottom to absorb moisture and odor, but don’t use strong fragrances to mask the problem—they just layer smells and can attract pests.
Airflow and shade matter, too. If possible, keep bins out of direct sun and leave a gap around them so air can move. Don’t overfill bins or force the lid open; a tight lid traps heat and moisture, while an overflowing bin invites spills and flies. Fix cracks and leaks promptly, because standing liquid is odor waiting to happen. Finally, align with collection schedules: empty bins before they get hot and full, and increase pickup frequency during heat waves. If a bin still smells after cleaning, check for hidden waste at the bottom, contaminated recycling, or a drainage issue. Small, consistent habits keep summer bins much fresher.