domain redirects to subdomain

I am facing an issue I created a subdomain , I am using hosting so I choose an auto-installer option and choose subdomain but after some time when I click on my main domain it redirects to the subdomain , I deleted subdomain but still I am facing this issue