{"id":3904,"date":"2016-02-02T18:02:09","date_gmt":"2016-02-02T18:02:09","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=3904"},"modified":"2020-11-25T08:56:00","modified_gmt":"2020-11-25T16:56:00","slug":"removing-old-files-with-an-automated-process","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/removing-old-files-with-an-automated-process\/","title":{"rendered":"Removing Old Files with an Automated Process"},"content":{"rendered":"<p>Old files can build up in two places\u00a0and might result in decreased performance.<\/p>\n<ul>\n<li>Your input directory might have files that do not match a condition in the Director&#8217;s file selector. As a result, they are never processed. For example, you have a file selector on files named INV*, but you find numerous files in your input directory that begin with PO*. eFORMz must search the input directory for files that match the file selector. Performance decreases if thousands of files must be searched to find the next file to process.<\/li>\n<li><span style=\"line-height: 1.5;\">Your output directory might not have a properly configured clean up step, which results in old files sitting there.\u00a0eFORMz might need to search the output directory to match a shipping list with a packing list. A search through a long list of files decreases performance.<\/span><\/li>\n<\/ul>\n<p>Complete the following steps to remove old, unused files from your system.<\/p>\n<ol>\n<li>Open the Director Toolkit &gt; Configure tab and open the configuration file.<\/li>\n<li>Right click the configuration file name &gt; \u00a0Add Input &gt; Local directory. This is where\u00a0you specify the directory where the files to delete are located.<\/li>\n<li>Specify a name for this step, select the directory, and check interval. The check interval is the number of seconds that the Director waits before checking for files to process. In the following example, the Director checks the Input directory every 60 seconds for files to process:<img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-3913 aligncenter\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2-300x197.jpg\" alt=\"DeleteFiles2\" width=\"300\" height=\"197\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2-300x197.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2-150x98.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2-250x164.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2-274x180.jpg 274w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2-457x300.jpg 457w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles2.jpg 547w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<li>Optionally, specify an\u00a0<a href=\"\/support\/index.php\/adding-an-active-interval-to-file-processing\/\" target=\"_blank\" rel=\"noopener noreferrer\">active interval<\/a>, which is one or more periods when this step is active. For example, to delete all .zpl files at the end of the day, you want this step to be active after business hours. You can create an active interval starting at 21:00 to delete processed files.<\/li>\n<li>Click OK.<\/li>\n<li><span style=\"line-height: 1.5;\">Enter a file selector. This example deletes all files matching *.zpl. In the Disposition area, click Delete selected file.\n<p>You cannot use *.hld as a file selector. These files are invisible to eFORMz. Appending or changing an extension to .hld is intended to be for development and troubleshooting work. Production systems should never have .hld files. These files must be deleted some other way.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-8678 aligncenter\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-300x300.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-150x150.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-75x75.jpg 75w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-48x48.jpg 48w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-250x249.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-181x180.jpg 181w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1-301x300.jpg 301w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/02\/DeleteFiles1-1.jpg 496w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\n<\/span><\/li>\n<li>Optionally, in the <a href=\"\/support\/index.php\/using-the-file-age-selector\/\" target=\"_blank\" rel=\"noopener noreferrer\">Additional File Selector<\/a> area, you can further specify to delete files older than a specified length of time or larger than a specified size.<\/li>\n<li>Click OK and save your changes to the configuration file.<\/li>\n<li>Go to the Director tab and start or restart the Director to process the updated configuration file.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Old files can build up in two places\u00a0and might result in decreased performance. Your input directory might have files that do not match a condition in the Director&#8217;s file selector. As a result, they are never processed. For example, you have a file selector on files named INV*, but you find numerous files in your [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,105],"tags":[],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3904"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=3904"}],"version-history":[{"count":14,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3904\/revisions"}],"predecessor-version":[{"id":8679,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3904\/revisions\/8679"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=3904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=3904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=3904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}