---
title: "How to Delete an AWStats Data File"
description: "When managing a new website, your webserver may save old data that you don't want to show in your AWStats statistics. These stats can be cleared out by removing them from your tmp/awstats folder. The..."
url: https://www.inmotionhosting.com/support/edu/cpanel/delete-awstats-data/
date: 2013-02-18
modified: 2022-08-19
author: "InMotion Hosting Contributor"
categories: ["cPanel"]
type: post
lang: en
---

# How to Delete an AWStats Data File

When managing a new website, your webserver may save old data that you don’t want to show in your AWStats statistics. These stats can be cleared out by removing them from your `*tmp/awstats*` folder.

The stats are stored in text files in regards to the subdomains. To delete a specific domain stats, you can find the text file for the subdomain and remove it only. A typical subdomain file name will look like the following:

awstats082022.subdomain.example.com.txt

This txt file shows the date 08-20-2022 for the subdomain subdomain.example.com. Deleting this file will delete the stats for that specific date and that specific subdomain. Below are the steps on how to do this.

**Important!** Deleting an AWStats data file will permanently remove the stats for that domain or date.

## How to Remove AWStats Data File History

1. [Login into your cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
2. Click the [File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/) link in the *Files* section.![Accessing the File Manager in cPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/cpanel-file-manager.png)
3. Select the **tmp** then **awstats** folder in the left menu.![Accessing the tmp Then AWStats Folder](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/tmp-awstats-folder.png)You will see all of your AWStats data files listed.![Listing AWStats Data File](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/awstats-list-files.png)
4. You can then [move the files](/support/website/how-to-move-files-on-server/) to a backup folder for future reference, [rename](https://www.inmotionhosting.com/support/edu/cpanel/renaming-files-folders/), or [delete](https://www.inmotionhosting.com/support/website/how-to-delete-a-file/) them from the directory.

Congratulations, now you know how to delete an AWStats data file!
