Automatically delete files based on input criteria