Aside from cleaning with vinegar, there are suggestions that the smell can deter foxes, but the experts are somewhat wary of its effectiveness.
"White vinegar can be used as a deterrent, but its effectiveness is variable," says Oliver. "Some foxes may be deterred by the strong smell, while others may not be affected." If you choose to use vinegar just be mindful that it can damage grass and the soil of your best plants due to acidity levels so avoid spraying when you can.
"White vinegar can be placed around the garden in small bowls," says Jordan. "These should be deterred from entering the property by the scent. However, foxes are intelligent and adaptable animals, so white vinegar will only have a temporary effect in deterring them. Eventually, they may become accustomed to the smell, especially if there is no immediate threat to them. White vinegar can be an effective deterrent, but it is best used in combination with other tactics to make your property less appealing to foxes."
Overall we'd say it's best to avoid using vinegar to deter foxes because there are better natural methods to try first.