Sadly, there’s nothing you can do about it. Even if you pay for a pest control company to remove the foxes, another one will come in quite quickly. We have urban foxes because they were always hunted by dogs or by man in the countryside to keep the populations. They realised there is much more food in cities.
The simplest answer to get around the problem is to armour your bins. Put a breeze block on top of them so the fox can’t get in. Or invest in bins that are too tall for the fox to lever the lid off. Black plastic bags are an open invitation to the fox, so if you can’t accommodate them in a bin, at least make a strong wire enclosure to hold them in place until the dustmen arrive.
The urban fox is fearless. It knows it exactly what it wants and what it can do. There are no real predators for them in the city. People keep their dogs locked up at night so foxes can do pretty much what they like. Though there’s research to suggest that in areas where dogs are allowed to run around all day, the fox populations are lower, but in the posh parts of town, where the pampered pooches stay in doors, the foxes thrive. The main cause of mortality is road traffic accidents, which is rather sad because they’re often injured and take a long time to die.