Trim Oldest Files from Folder

Quick Description This automation policy delete files based on age.
Applies To N-central 9.5.x
Last Revised April 10, 2014


This automation policy deletes the oldest files from a target folder while retaining a configured minimum number of files in the folder. Use this automation policy to manage applications that produce many daily or event-based log files so that those log files do not begin to consume excessive amounts of disk space.

Input parameters

Folder to remove oldest files from: <string value>


Number of files to be kept in folder: <integer value>


Automation policy


The specified number of files are deleted from the specified folder on a device.