1. Home
  2. Transact
  3. System Configuration
  4. Ephesoft Transact Property Files Reference Guide
  5. Auto-cleanup for Ephesoft Temporary Folders

Auto-cleanup for Ephesoft Temporary Folders


The Ephesoft temp folder clean-up feature helps to free the disc space consumed by the temporary folders within the Shared Folder of the Ephesoft installation directory created over a period of time.


Properties File Configuration

  • Firstly the following property needs to be uncommented from the applicationContext.xml of the application to initiate the service

<import resource=”classpath:/META-INF/applicationContext-tempfolder-cleanup.xml” />

  • Secondly the following properties have to be set for running the service. Changes are required to be made in the file located at path {EphesoftInstallationDirectory}\ Application \WEB-INF\classes\META-INF\ dcma-tempfolder-cleanup
S. No. Property Description Sample
1 tmp_cleanup.deletablefolders A list of folders within Shared folders contents of which are to be deleted. Folder names are separated by semi colon. tmp_cleanup.deletablefolders=web-service-folder;scannedImages;upload-batch-folder;temp;
2 tmp_cleanup.cleanup_age Deletes the files from the specified folders older than the given hours. tmp_cleanup.cleanup_age=24
3 tmp_cleanup.cronjob_expression Cronjob expression to schedule the service. tmp_cleanup.cronjob_expression = 0 0 12 * * ?

(runs at 12 pm every day)

Directories outside SharedFolders

The above applies only to temp directories contained in the SharedFolders. There are other temporary directories which have to be cleaned manually:

  • <EphesoftInstallDirectory>\temp
  • <EphesoftInstallDirectory>\JavaAppServer\temp

For the above, this is the recommended procedure to clean them:

  1. Stop the service
  2. Delete all the files in the directories
  3. Start the service


Was this article helpful to you? Yes No