Depending on the fly species infesting your property, it may last days or months if you leave them to their own accord. However, flies will contaminate food with the diseases they carry, so you must control the situation.