1) Is it okay to purge this data after a certain amount of time?
2) Is there a way to configure the system to automatically purge this data?
Release : 4.7
Component : CA Test Data Manager
Yes, it is safe to purge the Job logs from the Portal server. You may need to verify your company policy regarding log retention, before setting up the TDM Portal application to automatically clean up the Jobs directory.
To configure TDM Portal to clean up the Jobs directory for you will need to add the following statements to the application.properties file, and restart the TDM Portal service.
'tdmweb.jobs.cleanupInterval' specifies the frequency (in hours) that you would like the application to clean up the Job directory.
'tdmweb.jobs.cleanOlderThan' specifies how old the jobs should be (in hours) before the application flags them for clean up.
In TDM 4.8+ Engineering introduced a batching mechanism to clean up the directory in smaller batches: 'tdmweb.jobs.cleanup.batch.size' (default 500). If you add this statement to the application.properties file, the application will clean up the directory in chunks of the number of jobs you specify. By default, 500 jobs at a time.
NOTE: the application.properties file is read in at startup of the CA Test Data Manager Portal Service. Therefore, any changes made will only take effect after the TDM Portal service has been stopped and restarted.
For more information see the TDM documentation - "Configure Access to Requests Results"