Vinegar also keeps moths away from the house. Vacuuming your carpet can help you remove some moth eggs and larvae completely. If the rug is too big to turn completely over turn up all the edges.