If there were a way to accomplish this then every single hatchery would be doing it. There is no trick. Sex is determined at fertilization of the egg inside the hen, you cannot change it. There are rumors of temperatures killing off the male eggs--sometimes they say make it hotter, sometimes colder--I don't believe any of that, because again, the hatcheries don't do it.
The bottom line is that there is a 50% chance of getting a male every time. It's like flipping a coin. You may get 70% females one time, and only 40% females the next. (It is this variability that probably led to some very unscientific assumptions about temperature affecting sex).
The industry solution to your problem is the Red Sex Link and Black Sex Link hybrids. These birds can easily be sexed at hatch by color....then the males are usually disposed of immediately after hatch.