I had this problem on my front lawn four/five years ago. I tried various things to deter the culprit , including
watering male urine around the perimiter!!! It didn't work.
In the end, my fascination with badgers and huge desire to actually see a live one from fairly close up took over, and I started watching for it out of the window instead. For me, it was worth it to see one up close.
The problem only lasted a couple of years, and then only for a couple of months in spring. Sadly though, the colony didn't seem to be doing well - I started regularly spotting badgers out looking for food during the day, and when that starts happening it can be s sign that something isn't right.
The sett I think it came from (which with binoculars I could see from a bedroom window) was abandoned a couple of years ago.
I would almost be happy to see signs of them in the garden again now.