The little flies are present in your turtle tank because you have a dirty tank. The flies are attracted to filthy environments and lay their eggs in these areas. As such, keeping your tank clean is a sure way to keep the flies away from your turtle’s habitat.