{"id":4609,"date":"2015-03-12T14:45:41","date_gmt":"2015-03-12T14:45:41","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=4609"},"modified":"2022-03-01T14:38:25","modified_gmt":"2022-03-01T21:38:25","slug":"ephesoft-temporary-folders-auto-cleanup","status":"publish","type":"docs","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/configurations\/transact-property-file-reference-guide\/ephesoft-temporary-folders-auto-cleanup\/","title":{"rendered":"Transact Temporary Folder Automatic Cleanup"},"content":{"rendered":"
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.<\/p>\n
<import resource=\"classpath:\/META-INF\/applicationContext-tempfolder-cleanup.xml\" \/><\/pre>\n\n
- Configure the following properties in the dcma-tempfolder-cleanup.properties<\/strong> file, located at [Ephesoft_Directory]<\/em>\\Application\\WEB-INF\\classes\\META-INF\\dcma-tempfolder-cleanup.<\/li>\n<\/ol>\n
\n\n
\n Property<\/strong><\/td>\n Description<\/strong><\/td>\n Example <\/strong><\/td>\n<\/tr>\n \n tmp_cleanup.deletablefolders<\/td>\n The list of folders within SharedFolders that should be deleted. Separate multiple folder names using a semicolon (;).<\/td>\n tmp_cleanup.deletablefolders=web-service-folder;scannedImages;upload-batch-folder;temp;<\/td>\n<\/tr>\n \n tmp_cleanup.cleanup_age<\/td>\n Specifies in hours how old a file must be before it will be deleted.<\/td>\n tmp_cleanup.cleanup_age=24
\nThis means that files will be deleted 24 hours after their creation.<\/td>\n<\/tr>\n\n tmp_cleanup.cronjob_expression<\/td>\n This property uses a cron expression to determine when the cleanup job should run.<\/td>\n tmp_cleanup.cronjob_expression = 0 0 12 * * ?
\nThis means the cleanup job will run every day at 12 PM.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\nNote:<\/strong> The above properties only apply to temp directories contained in SharedFolders.<\/p>\n
Directories Outside of SharedFolders<\/h2>\n
There Ephesoft\\temp<\/strong> and Ephesoft\\JavaAppServer\\temp<\/strong> directories must be cleaned manually.\u00a0 Follow the steps below\u00a0to clean them:<\/p>\n
\n
- Stop Ephesoft Transact.<\/li>\n
- Delete all the files in the directories.<\/li>\n
- Start Ephesoft Transact.<\/li>\n<\/ol>\n","protected":false},"featured_media":0,"parent":15612,"menu_order":2,"comment_status":"closed","ping_status":"open","template":"","doc_tag":[],"yoast_head":"\n
Transact Temporary Folder Automatic Cleanup | Ephesoft Docs<\/title>\n\n\n\n\n\n\n\n\n\n\n\t\n