If you build bad links for your site and you want to remove them, then you create a disavow link file disavow backlinks only if you believe you have a considerable number of spammy, artificial, or low-quality links pointing to your site, and if you are confident that the links are causing issues for you.
This is a two-step process. First, you’ll need to download a list of links to your site. Next, you’ll create a file containing only the links you want to disavow, and upload this to Google.