Fill a small glass with a few tablespoons of apple cider vinegar. Cover the top of the glass with a layer of plastic wrap and secure it with a rubber band. Poke a few holes in the plastic wrap with a toothpick and leave the container out in your kitchen. The gnats will trap themselves and die in the glass.