{"id":355,"date":"2015-07-07T05:29:38","date_gmt":"2015-07-07T05:29:38","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=355"},"modified":"2020-08-22T15:47:53","modified_gmt":"2020-08-22T04:47:53","slug":"how-to-delete-a-folder-from-the-command-prompt","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-delete-a-folder-from-the-command-prompt\/","title":{"rendered":"How to Delete a Directory (Folder) from the Command Prompt"},"content":{"rendered":"<p>Sometimes deleting a folder and it&#8217;s contents from Windows Explorer can take an eternity especially when dealing with large folders as it deletes each file one by one. \u00a0The faster way is to delete the folder from the windows command prompt.<\/p>\n<h2>To delete a directory or folder and all it&#8217;s contents from the command prompt:<\/h2>\n<h3>Step 1. Open an Elevated Command Prompt<\/h3>\n<p><em><strong>Windows 7<\/strong><\/em><\/p>\n<ol>\n<li>Click Start, click All Programs, and then click Accessories.<\/li>\n<li>Right-click Command prompt, and then click Run as administrator.<\/li>\n<li>If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.<\/li>\n<\/ol>\n<p><strong><em>Windows 8 and higher<\/em><\/strong><\/p>\n<ol class=\"_jYe\">\n<li class=\"_AXc\">Click the Start button .<\/li>\n<li class=\"_AXc\">In the Search box, type command prompt.<\/li>\n<li class=\"_AXc\">In the list of results, right-click Command Prompt, and then click Run as administrator.<\/li>\n<\/ol>\n<h3>Step 2. Type in the following command<\/h3>\n<p><code>RD \/S \/Q \"The Full Path of Directory\"<\/code><\/p>\n<p>Where the full path of the folder is the one which you want to delete. \u00a0E.g. &#8220;c:\\data\\folder&#8221;<\/p>\n<h2>Notes<\/h2>\n<p><span style=\"color: #ff0000;\">Please be aware that the command to delete a folder on your windows computer is final. \u00a0The delete items won&#8217;t go to the recycle bin first and if you put in the wrong path you could be in trouble. \u00a0If in doubt, backup first!<\/span><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Sometimes deleting a folder and it&#8217;s contents from Windows Explorer can take an eternity especially when dealing with large folders as it deletes each file one by one. \u00a0The faster way is to delete the folder from the windows command prompt. To delete a directory or folder and all it&#8217;s contents from the command prompt: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[9],"article-tag":[781,778,782,777,337,336,780,779,776],"class_list":["post-355","article","type-article","status-publish","format-standard","hentry","article-category-windows-commands","article-tag-cmd-delete-folder","article-tag-command-line-delete-directory","article-tag-command-prompt-delete-directory","article-tag-delete-directory-cmd","article-tag-delete-folder-command-line","article-tag-delete-folder-command-prompt","article-tag-remove-directory-cmd","article-tag-remove-directory-command","article-tag-rmdir-force"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":48,"sum_votes":144},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/355\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=355"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}