The PhoenixFileService removes old and unused files from Phoenix temporary folders.
This topic contains the following sections.
Description
The PhoenixFileService is a Windows service that runs automatically every set interval of time. Its job is to delete old files from each Phoenix temporary folder as indicated in the FileTempFolder setting.
|
The PhoenixFileService does not make any backups of the files it has deleted. Nor does it make use of the Windows recycle bin. Once this service has deleted a file, it is effectively gone. For this reason, please ensure the value of FileTempFolder is properly set, before starting this service. |
When the PhoenixFileService starts, it parses the value of the FileTempFolder setting, and creates a list of folders that it will scan periodically. The interval is set in FileScanInterval.
During a scan, files are gathered recursively from each folder. Files that have are older than the interval set in FileScanInterval are deleted from the system. In addition, if a sub-folder is empty, it is deleted as well.
The log file
This service writes diagnostic information in a plain text log file which can be found at [Phoenix install folder]\logs\delete.log. The amount of information that is written can be controlled by starting the service with an additional debug parameter.
When the service is started in debug mode, the filename of each deleted file is written to the log file. On busy nodes, the log file can quickly fill up with "Deleted File:" entries, so use this parameter only for debugging or troubleshooting.
For more information on starting and stopping services see The PhoenixServices.
