Question

Is It safe to delete files from Document Temporary Path?

  • 22 August 2023
  • 3 replies
  • 123 views

Badge +2

I want to delete older files, PDFs mostly, from the folder/directory in the “Document Temporary Path” which is found in the last screen of the reconfiguration option of the installer.cmd. I just want to confirm that it would be safe. The directory is growing tremendously in size. 

 


3 replies

Userlevel 7
Badge +30

If the file is older than a few hours, or days if you want to be on the safe side, yes.

And! Assuming you are not using the same folder as a repository folder 🙃

 

Userlevel 6
Badge +14

BTW you do not have to delete files in DOCUMENT_TICKET_TEMP_PATH manually. You can schedule a database task with method "delete_old_tickets" in the "batch_transfer_handler_api" and provide the parameter SCHEDULED_HOURS [SCHEDULED_HOURS is a parameter to distinguish the tickets to be deleted. So all the tickets older than the scheduled hours will get deleted]

Badge +2

@Amila Samarasinghe I created the task and scheduled it. I’ve also ran it manually several times with different values, las one being 720 (1 month x 24hs), but nothing is being deleted. All still there in the DEV environment. Any thoughts? Do you see a mistake?

 

Reply