I actually improvised my own life hack today. As I was about to YouTube "how to get rid of flies" I thought of a brilliant idea of using deodorant spray. But didn't act on it thinking why didn't anyone mention it.
But it did work after some liberal* sprays. *NOT HILLARY. Apparently the new spray has irritants which possibly irritates the fly's eyes as well as make the flappy wings sticky icky icky.