It depends on what species of fly you are talking about. House flies, phorid or sewer flies and fruit flies are the most common. They are require different treatment strategies. If you tell me what species I can be of more help.
CB 80 will kill any species of adult fly. Simply spray it into the air and it will kill on contact.