To get rid of bad backlinks you have to monitor your link profile using a tool like SEMrush or Google's own search console see how here export a detailed list of sites linking to you and then filter it based on the authority and quality of sites. Use a tool like WikiGrabber to find sites with dead links based on your target keyword and see if you got an article that could replace the dead link to add context and value to the Wikipedia page. This method works because you actually help clean up a broke link and thus improve user experience of a site and in return you get a chance to add a link to any of your resource that does the same job as the broke link did. Since the beginning of Google's algorithmic model backlinks have been one of the most important players to determine the context of an article or webpage the value it provides and ultimately the authority of the article. After that you have to create a text file of the bad backlinks you want to get rid of either manually or using a tool like disavow. it and then submit the same to Google disavow tool under your search console account.
Read more