So, I recently bought a domain name from Bluehost. Soon, I realized the domain name used to belong to someone else before I bought it. Now, the problem I am facing is that there are a few trash files that get crawled by all kinds of bots when they access my domain website which belonged to the previous domain. There is no way I can access those files on my cPanel server.
My website got flagged as malicious by Google Ads probably due to their files using 'http' calls while all my pages run on https. I did find a work-around to the mixed content problem by creating blank files and folders of the same name on my server that were causing http calls, and setting up redirects to my homepage. But google ads still flags my website as malicious content. It came up as clean in sucuri malware scan after resolving the mixed content issue.
Is there any way I can remove all the junk files that were left associated to my domain by the previous domain owner? If I choose to ignore it and let things be as they are, will it be a problem for me in the future? Should I just buy another domain name that didn't belong to anyone in the past and move my website there?
Update: I have confirmed on search console that the pages being flagged problematic by sucuri do return a 404 error. It seems I only need to configure my 404 handler and make sure they don't use http links. I would like to thank @stephenostermiller, @raulreyes and @patrickmevzek in helping me understand the problems.
PS: Google support also got in touch with me and told me that my website is clean and they'll be removing the malicious software tag from it soon.