How to delete downloaded files generated by CMIS in pega server directory
Pega front-end is saving the file in filenet using CMIS service, then after saving it in filenet, the user can download the files saved in filenet.
The design on how pega retrieves the file from filenet is, pega will send a request using CMIS service to filenet then filenet's response is, will send the file then pega will save the downloaded file in pega server temp folder and the file can now retrieve and save in user's pc memory (user who initiated the download).
The dilemma is how we can delete the downloaded file stored in pega server temp folder?
Is there any OOTB rule can we use to achieve this?