[header] How to trap pigeons [title] Keep your property clean. [step] Pigeons are natural scavengers who thrive off the waste that humans leave behind. [substeps] If you maintain a clean property, free of food scraps and loose fruit and vegetation, you are decreasing the chance that pigeons will roost by your home or apartment building. 
While this may not prevent the pigeons from occasionally traveling through, they probably won't be sticking around long. Make sure you have trash cans and/or dumpsters that can close.