You can also block off holes or areas where sparrows can build their nest. You can cover with nets or block permanently. There is also anti birds gel, which will prevent sparrows from landing on your ledges and rafters.
Eliminate food sources
Birds, including house sparrows, are easily attracted by food. When sparrows even invade your environment, they will overrun your trash bins and scatter anywhere they can find food. Remove foods like cracked corn as it is a favourite of a house sparrow.
Getting rid of food sources will make your environment less attractive to sparrows. Keep your trash cans and containers tightly sealed and secured so that these house sparrows will be unable to overturn it. Also, get rid of leftover foods.
In order to deter them, you can also provide foods that house sparrows don’t like. House sparrows don’t like Bread, Sunflower kernels, Black oil sunflower seeds, millet, cracked corn etc. This will also keep house sparrows from your backyards and birdhouses.
You can get rid of house sparrows the old fashioned way if you live in a local area where the local legislation allows for the shooting of birds. You can choose to shoot the house sparrows , this will not permanently get rid of them, but it’s an option.