{"id":6127,"date":"2016-08-04T22:15:02","date_gmt":"2016-08-04T21:15:02","guid":{"rendered":"http:\/\/emilkirkegaard.dk\/en\/?p=6127"},"modified":"2016-08-04T22:15:02","modified_gmt":"2016-08-04T21:15:02","slug":"deleting-files-with-empty-extensions-on-windows-8-1","status":"publish","type":"post","link":"https:\/\/emilkirkegaard.dk\/en\/2016\/08\/deleting-files-with-empty-extensions-on-windows-8-1\/","title":{"rendered":"Deleting files with empty extensions on Windows 8.1"},"content":{"rendered":"<p>I&#8217;m posting this here so I can find it more easily because this is at least the third time I had to google the issue to retrace my own steps on StackOverflow to find <a href=\"http:\/\/superuser.com\/a\/554076\/510663\">the solution I found last time<\/a>! I even found <a href=\"http:\/\/stackoverflow.com\/questions\/10635840\/how-to-delete-all-contents-of-a-file-with-no-extension-using-windows-batch-co\">some useful comments I wanted to upvote<\/a>, only to realize they were my own from months ago! Argh!<\/p>\n<p>So here&#8217;s the situation:<\/p>\n<ul>\n<li>You somehow managed to create a file with an empty extension. One cannot normally do this, but one can do it thru e.g. the browser if one types a dot at the end of the filename. This creates two files, one without an extension and one with an empty extension:<\/li>\n<\/ul>\n<p><a href=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-0.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6136\" src=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-0.png\" alt=\"pesky file 0\" width=\"304\" height=\"61\" \/><\/a><\/p>\n<p><a href=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6135\" src=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-1-1.png\" alt=\"pesky file 1\" width=\"602\" height=\"60\" \/><\/a><\/p>\n<ul>\n<li>If one tries to delete them the normal way, one gets &#8220;file not found&#8221; error for the one with a dot at the end:<\/li>\n<\/ul>\n<p><a href=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6137\" src=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-2-1.png\" alt=\"pesky file 2\" width=\"603\" height=\"237\" \/><\/a><\/p>\n<ul>\n<li>And even using <em>del<\/em> thru an elevated <em>cmd<\/em> does not work.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-3-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6138\" src=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-3-1.png\" alt=\"pesky file 3\" width=\"374\" height=\"32\" \/><\/a><\/p>\n<ul>\n<li>Being sneaky with <em>del *.<\/em> does not work either.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-4-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6139\" src=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-4-1.png\" alt=\"pesky file 4\" width=\"348\" height=\"46\" \/><\/a><\/p>\n<ul>\n<li>One has to use a special syntax that can deal with ill-formatted file names:<\/li>\n<\/ul>\n<p><a href=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6140\" src=\"http:\/\/emilkirkegaard.dk\/en\/wp-content\/uploads\/pesky-file-5.png\" alt=\"pesky file 5\" width=\"374\" height=\"42\" \/><\/a><\/p>\n<p>AND DEAD!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m posting this here so I can find it more easily because this is at least the third time I had to google the issue to retrace my own steps on StackOverflow to find the solution I found last time! I even found some useful comments I wanted to upvote, only to realize they were [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[2373,2371,2374,2372,1402],"class_list":["post-6127","post","type-post","status-publish","format-standard","hentry","category-computer","tag-file","tag-invincible","tag-no-extension","tag-undeleteable","tag-windows","entry"],"_links":{"self":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/6127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/comments?post=6127"}],"version-history":[{"count":1,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/6127\/revisions"}],"predecessor-version":[{"id":6141,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/posts\/6127\/revisions\/6141"}],"wp:attachment":[{"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/media?parent=6127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/categories?post=6127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emilkirkegaard.dk\/en\/wp-json\/wp\/v2\/tags?post=6127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}