File History does point in time backups of your files so that you can revert back to the exact copy or version of your files when you need them. File History also allows you to configure how long the backups are retained, and beyond that the older versions are purged automatically. This post tells you how to manually clean up older versions of your File History backups using two different ways.
Cleanup Older Versions of Files Using File History Settings
Right-click Start, click Control Panel.
Set Control Panel to icons view, and click File History
Click Advanced Settings in the Tasks pane.
In this screen, you can configure the frequency of backups, and how long the backups are stored.
To delete older versions from the File History backup, click Clean up versions
Select one of the following options in the drop down, and click Clean up.
- All but the latest one
- Older than 1 month
- Older than 3 months
- Older than 6 months
- Older than 9 months
- Older than 1 year (default)
- Older than 2 years
Cleanup Older Versions of Files Using Command Prompt
To automate the task, there is also a command-line tool named fhmanagew.exe. FhManagew.exe deletes file versions that exceed a specified age from the currently assigned File History target device.
Open a Command Prompt window and type:
FhManagew.exe -cleanup 45
This delete all file versions that are older than 45 days.
Note: If no files match the age criteria you specified (files older than 45 days), the following message would appear.
We didn’t find any versions of your files that were that old
Choose a shorter period of time and try again.
The command-line tool supports the "-quiet" parameter which suppresses output message(s) and the dialog shown above. To do the clean up silently, you’d use:
FhManagew.exe -cleanup 45 -quiet
In addition to the above “cleanup” switch, FhManageW supports these additional switches or parameters, which aren’t officially documented.
Run File History backup on demand, manually.
Stop File History backup that’s currently running
Open File History settings page.
Checks the target drive assigned as the File History backup drive.
Screenshots – Before and After Cleanup
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.