How to Use File History Cleanup to Delete Older Versions of Files in Windows 8 and 8.1
Information
File History is a new feature introduced in Windows 8 that automatically backs up files that are in your libraries, contacts (C:\Users\(user-name)\Contacts), Internet Explorer favorites (C:\Users\(user-name)\Favorites), and your desktop (C:\Users\(user-name)\Desktop).
This tutorial will show you how to use File History cleanup to delete all backed up file versions older than the number of days you specify in Windows 8, Windows RT, Windows 8.1, and Windows RT 8.1.
This tutorial will show you how to use File History cleanup to delete all backed up file versions older than the number of days you specify in Windows 8, Windows RT, Windows 8.1, and Windows RT 8.1.
Note
File History saves your files in the Data folder in the selected local or network drive at the location below.
(selected drive)\File History\(user-name)\(computer-name)\Data\C\Users
If you like, deleting the File History folder will delete all versions of files and folders on that specific selected drive.
(selected drive)\File History\(user-name)\(computer-name)\Data\C\Users
If you like, deleting the File History folder will delete all versions of files and folders on that specific selected drive.
OPTION ONE
To Use File History Cleanup from Control Panel
1. Open the Control Panel (icons view), and click/tap on the File History icon.
2. On the left side in File History, click/tap on Advanced settings. (see screenshot below)
3. Under the Advanced settings section, click/tap on the Clean up versions link. (see screenshot below)
4. In the drop down menu, select the age you want to delete versions of files and folders from, and click/tap on Clean up. (see screenshots below)
5. If File History Cleanup didn't find any versions of your files that were older than the selected age, then click/tap on Close. (see screenshot below)
6. If File History Cleanup found and successfully deleted any versions of your files that were older than the selected age, then click/tap on OK. (see screenshot below)
7. When finished, you can close File History if you like.
OPTION TWO
To Use File History Cleanup from Command Prompt
1. Open an elevated command prompt.
2. In the elevated command prompt, type the command you want to use below, and press Enter. (see screenshot below)
FhManagew.exe -cleanup age
OR
FhManagew.exe -cleanup age -quiet
Note
Substitute age in the command above for how many minimum number of days old of file versions that can be deleted.
To suppress all output, use the -quiet command-line option.
A file version is deleted if both of the following conditions are true:
If the age parameter is set to 0 (zero), all file versions are deleted, except for the newest version of each file that is currently present in the protection scope.
For example: To delete all file versions that are older than one month.
FhManagew.exe -cleanup 30
For example: To delete all file versions that are older than one year and suppress all output.
FhManagew.exe -cleanup 365 -quiet
To suppress all output, use the -quiet command-line option.
A file version is deleted if both of the following conditions are true:
- The file version is older than the specified age.
- The file is no longer included in the protection scope, or there is a newer version of the same file on the target device.
If the age parameter is set to 0 (zero), all file versions are deleted, except for the newest version of each file that is currently present in the protection scope.
For example: To delete all file versions that are older than one month.
FhManagew.exe -cleanup 30
For example: To delete all file versions that are older than one year and suppress all output.
FhManagew.exe -cleanup 365 -quiet
3. If File History Cleanup didn't find any versions of your files that were older than the specified age, then click/tap on Close. (see screenshot below)
NOTE: You will not see this prompt if you used the -quiet option.
4. If File History Cleanup found and successfully deleted any versions of your files that were older than the specified age, then click/tap on OK. (see screenshot below)
NOTE: You will not see this prompt if you used the -quiet option.
5. When finished, you can close the command prompt if you like.
That's it,
Shawn
Related Tutorials
- How to Set up and Use File History in Windows 8 and 8.1
- How to Restore Previous Versions of your Files with File History in Windows 8 and 8.1
- How to Create a "File History Home" Shortcut in Windows 8 and 8.1
- How to Recommend your File History Drive to Homegroup in Windows 8 and 8.1
- How to Reset File History to Default in Windows 8 and 8.1
- How to Create a "File History" Shortcut in Windows 8 and 8.1
- How to Enable or Disable File History in Windows 8 and 8.1
- How to View and Manage Space for Windows Backups in Windows 8
- How to Open and Use Disk Cleanup in Windows 7 and Windows 8
- How to Delete System Protection Restore Points in Windows 7 and Windows 8
Attachments
Last edited by a moderator: