1. Home
  2. Transact
  3. System Configuration
  4. Ephesoft Transact Property Files Reference Guide
  5. Transact Temporary Folder Automatic Cleanup

Transact Temporary Folder Automatic Cleanup

This page describes how to configure the automatic cleanup for Transact temporary folders. The Transact temporary folder cleanup feature helps to free the disc space that is 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 file, located at [Ephesoft_Directory]\Application\WEB-INF\classes\META-INF\dcma-tempfolder-cleanup.
Property Description Example
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;
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 that files will be deleted 24 hours after their creation.
tmp_cleanup.cronjob_expression This property uses a cron expression to determine when the cleanup job should run. tmp_cleanup.cronjob_expression = 0 0 12 * * ?
This means the cleanup job will run every day at 12 PM.

Note: The above properties only apply to temp directories contained in SharedFolders.

Directories Outside of SharedFolders

There Ephesoft\temp and Ephesoft\JavaAppServer\temp directories must be cleaned manually.  Follow the steps below 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 1 No