The FhManagew.exe program deletes file versions that exceed a specified age from the currently assigned File History target device.
This program is available in Windows 8 and Windows Server 2012 and later.
To execute this program, go to the Start menu, click Run, and type the following command.
FhManagew.exe -cleanup age
| Parameter | Description |
|---|---|
| age | This parameter specifies the minimum age, in days, of file versions that can be deleted. A file version is deleted if both of the following conditions are true:<ul><li>The file version is older than the specified age.</li><li>The file is no longer included in the protection scope, or there is a newer version of the same file on the target device.</li></ul>If the age parameter is set to zero, all file versions are deleted, except for the newest version of each file that is currently present in the protection scope. |
To suppress all output from this program, use the -quiet command-line option as follows.
FhManagew.exe -cleanup age -quiet
Examples
| Example | Description |
|---|---|
| FhManagew.exe -cleanup 30 | Delete all file versions that are older than one month. |
| FhManagew.exe -cleanup 365 -quiet | Delete all file versions that are older than one year and suppress all output. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
