Our site remains ad-free thanks to Namecheap. Get a .COM for just $5.98! Namecheap offers domains, hosting, VPN, and SSL certificates at low prices while providing outstanding customer service.
The post is not sponsored by the above affiliate and the content here is not representative of their company.
If you have had your hosting account for a while, and start to notice a huge amount of old domains or subdomains that keep appearing when you try to get into your stats, you can remove them. Not through CPanel, but through your FTP Client, and I am going to explain how.
Removing Unwanted Domains from AWStats
- Verify what domains you want to remove by opening up CPanel and going to AWStats.
- Open your FTP Client and connect to your web server.
- Navigate to “/tmp/awstats/”, this may vary slightly on different hosts, so you may have to dig a little bit through some folders.
- (Optional) Save the AWStats folder to your computer just incase you delete the wrong files.
- Start deleting files in the format of
awstats.[SUB].[DOMAIN].[TLD].conf, for instance, if your domain is “testing.geekthis.net”, you would look for and delete “awstats.testing.geekthis.net.conf”
- Reload your CPanel AWStats page to see those sites now gone.
Removing Unwanted Months of Stats from AWStats
- Using the above steps, go all the way up until 5, this is where we can now get started.
- Delete files in the format of
awstats[MONTH][YEAR].[SUB].[DOMAIN].[TLD].txtthat you no longer want. For instance, deleting April 2013 stats from geekthis.net, I would delete “awstats042013.geekthis.net.txt”
- Repeat this until all the stats you no longer want are deleted.