Transact

  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

This page describes how to configure the auto-cleanup for Ephesoft temporary folders. These instructions are intended for Transact administrators. The Ephesoft temp folder clean-up feature helps to free the disc space consumed by the temporary folders created over time.

Properties File Configuration

  1. Uncomment the following property from the applicationContext.xml to initiate the service.
<import resource="classpath:/META-INF/applicationContext-tempfolder-cleanup.xml" />
  1. Configure the following properties in the dcma-tempfolder-cleanup.properties file, located at [Ephesoft_Directory]\Application\WEB-INF\classes\META-INF\dcma-tempfolder-cleanup.
S. No. Property Description Sample
1 tmp_cleanup.deletablefolders The list of folders within SharedFolders that should be deleted. Separate multiple folder names using a semicolon (;). tmp_cleanup.deletablefolders=web-service-folder;scannedImages;upload-batch-folder;temp;
2 tmp_cleanup.cleanup_age Specifies in hours how old a file must be before it will be deleted. tmp_cleanup.cleanup_age=24

This means the files will be deleted 24 hours after their creation.

3 tmp_cleanup.cronjob_expression Specifies when the cleanup job should run, using a cron expression. tmp_cleanup.cronjob_expression = 0 0 12 * * ?

This means the cleanup job will run every day at 12 PM.

Directories outside SharedFolders

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

  • Ephesoft\temp
  • Ephesoft\JavaAppServer\temp

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

  1. Stop Ephesoft Transact.
  2. Delete all the files in the directories.
  3. Start Ephesoft Transact.
Was this article helpful to you? Yes No