How to Get Rid of Tree Frogs?

The best thing to do is get rid of the reasons why they are visiting your area. In other words, is there standing water around? They like to eat all the bugs that are attracted by lights also-can you dim em a bit?