How to remove fruit fly?

How to remove Drosophila? they don’t live just like that, remove rotten fruits, close the trash can more tightly or whatever you have there, drain your mash in the trash ... in general there is no source there are no flies Hunger ...