Perhaps you have in company shared folder for exchange of non-confidential large files, temp files and so on. To clean every night this folder : create on d disk folder stack/buffer or whatever you like, share it schedule bat file with following content: rem "Be carefull to be inside of stack folder!!!!" cd d:\stack d: del * /s /q for /f "delims=" %%d in ('dir /s /b /ad') do rmdir /s/q "%%d" IMPORTANT: Be very careful with this script, if you run it in improper  <span><a href="https://www.itforce.mn/index.php/2017/04/06/how-to-purge-everything-from-shared-folder-every-night/" class="readmore">Continue reading &rarr;</a></span>{"id":568,"date":"2017-04-06T20:28:04","date_gmt":"2017-04-06T12:28:04","guid":{"rendered":"http:\/\/www.itforce.mn\/?p=568"},"modified":"2017-04-11T23:59:44","modified_gmt":"2017-04-11T15:59:44","slug":"how-to-purge-everything-from-shared-folder-every-night","status":"publish","type":"post","link":"https:\/\/www.itforce.mn\/index.php\/2017\/04\/06\/how-to-purge-everything-from-shared-folder-every-night\/","title":{"rendered":"How to purge everything from shared folder every night"},"content":{"rendered":"<p>Perhaps you have in company shared folder for exchange of non-confidential large files, temp files and so on.<\/p>\n<p>To clean every night this folder :<\/p>\n<ul>\n<li>create on d disk folder stack\/buffer or whatever you like,<\/li>\n<li>share it<\/li>\n<li>schedule bat file with following content:\n<pre>rem \"Be carefull to be inside of stack folder!!!!\"\r\ncd d:\\stack\r\nd:\r\ndel * \/s \/q\r\nfor \/f \"delims=\" %%d in ('dir \/s \/b \/ad') do rmdir \/s\/q \"%%d\"<\/pre>\n<\/li>\n<\/ul>\n<p><span style=\"color: #ff0000;\">IMPORTANT: Be very careful with this script, if you run it in improper place you will delete everything recursively !!!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7],"tags":[],"class_list":["post-568","post","type-post","status-publish","format-standard","hentry","category-it-governance","category-sysadmin-thoughts"],"_links":{"self":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/comments?post=568"}],"version-history":[{"count":1,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/media?parent=568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/categories?post=568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/tags?post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}