{"id":37223,"date":"2004-11-23T07:00:00","date_gmt":"2004-11-23T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/11\/23\/why-do-folders-like-my-pictures-come-back-after-i-delete-them\/"},"modified":"2004-11-23T07:00:00","modified_gmt":"2004-11-23T07:00:00","slug":"why-do-folders-like-my-pictures-come-back-after-i-delete-them","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20041123-00\/?p=37223","title":{"rendered":"Why do folders like &#8220;My Pictures&#8221; come back after I delete them?"},"content":{"rendered":"<p>Some people are offended by the special folders like &#8220;My Pictures&#8221; and &#8220;My Music&#8221; and delete them, only to find them being re-created. What&#8217;s going on?<\/p>\n<p> Windows itself is okay with you deleting those folders. Some corporations, for example, remove those folders from their employees&#8217; machines because they don&#8217;t want the employees looking at pictures and listening to music while on the job. (Go figure.) And if the folder is deleted, Windows doesn&#8217;t try to bring it back. <\/p>\n<p> However, any program can ask for the folder to be re-created. For example, if a program passes the <code>CSIDL_FLAG_CREATE<\/code> to <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/shellcc\/platform\/shell\/reference\/functions\/shgetfolderpath.asp\"> the <code>SHGetFolderPath<\/code> function<\/a>, then Windows will create the specified folder if it doesn&#8217;t exist. Similarly if it passes pass <code>fCreate = TRUE<\/code> to <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/shellcc\/platform\/shell\/reference\/functions\/shgetspecialfolderpath.asp\"> the <code>SHGetSpecialFolderPath<\/code> function<\/a>. <\/p>\n<p> If it really troubles you, you can set a creation audit on the My Pictures folder and see which program is re-creating it. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some people are offended by the special folders like &#8220;My Pictures&#8221; and &#8220;My Music&#8221; and delete them, only to find them being re-created. What&#8217;s going on? Windows itself is okay with you deleting those folders. Some corporations, for example, remove those folders from their employees&#8217; machines because they don&#8217;t want the employees looking at pictures [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-37223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Some people are offended by the special folders like &#8220;My Pictures&#8221; and &#8220;My Music&#8221; and delete them, only to find them being re-created. What&#8217;s going on? Windows itself is okay with you deleting those folders. Some corporations, for example, remove those folders from their employees&#8217; machines because they don&#8217;t want the employees looking at pictures [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/37223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=37223"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/37223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=37223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=37223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=37223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}