Please Use this script to delete the files from the specific folder and delete the file which is older than Threshold day. It displays the file status after deletion.
This Script works well if run as a " System User"
Input:
Threshold_day = Mention specific days to delete the logs more than given days
Example:
Threshold_day= '1'
This Script run as a System User
Comments