An insect trap for use with containers, including garbage receptacles. An insect trap is attached or molded to or otherwise integrated with a container and relies on the contents within the container to attract or lure insects into a trap compartment designed to effectively entrap insects therein. Used trap compartments are discarded into the container using release mechanisms, sliding mechanisms, and other mechanisms that allow the used trap compartment to be discarded without coming in direct contact with the used trap compartment.