{"id":21255,"date":"2025-11-08T10:14:58","date_gmt":"2025-11-08T10:14:58","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=21255"},"modified":"2026-06-03T08:25:06","modified_gmt":"2026-06-03T08:25:06","slug":"how-to-create-and-delete-folders-using-the-command-prompt","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/","title":{"rendered":"How to Create and Delete Folders Using the Command Prompt"},"content":{"rendered":"<p>Managing folders in the Command Prompt (CMD) lets you quickly organise or clean up files without relying on the graphical interface. This guide explains how to create and delete folders using simple Windows commands.<\/p>\n<div class=\"more-tab-content\">\n<h2><strong>Table of Contents<\/strong><\/h2>\n<ol>\n<li><a href=\"#prompt\">Why Create and Delete Folders Using the Command Prompt?<\/a><\/li>\n<li><a href=\"#prerequisites\">Prerequisites<\/a><\/li>\n<li><a href=\"#command\">Open Command Prompt<\/a><\/li>\n<li><a href=\"#folder\">How to Create a Folder Using CMD?<\/a><\/li>\n<li><a href=\"#delete\">How to Delete a Folder Using CMD?<\/a><a name=\"prompt\"><\/a><\/li>\n<li><a href=\"#examples\">Common Examples<\/a><\/li>\n<li><a href=\"#practices\">Tips and Best Practices<\/a><\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ol>\n<\/div>\n<h3><strong>Why Create and Delete Folders Using the Command Prompt?<\/strong><\/h3>\n<p data-start=\"166\" data-end=\"248\">Using the Command Prompt offers several advantages over the graphical interface:<\/p>\n<ul data-start=\"250\" data-end=\"727\">\n<li data-start=\"250\" data-end=\"325\">\n<p data-start=\"252\" data-end=\"325\">It is faster and more efficient for performing folder management tasks.<\/p>\n<\/li>\n<li data-start=\"326\" data-end=\"420\">\n<p data-start=\"328\" data-end=\"420\">Allows automation <a name=\"prerequisites\"><\/a>through batch scripts for creating or deleting multiple folders at once.<\/p>\n<\/li>\n<li data-start=\"421\" data-end=\"528\">\n<p data-start=\"423\" data-end=\"528\">Provides better access to hidden or system directories that may not be easily visible in File Explorer.<\/p>\n<\/li>\n<li data-start=\"529\" data-end=\"625\">\n<p data-start=\"531\" data-end=\"625\">Enables remote management of files and folders where a graphical interface is not available.<\/p>\n<\/li>\n<li data-start=\"626\" data-end=\"727\">\n<p data-start=\"628\" data-end=\"727\">Offers more control and precision, making it useful for system administrators and advanced users.<\/p>\n<\/li>\n<\/ul>\n<h3><strong>Prerequisites<\/strong><\/h3>\n<p>Before <a name=\"command\"><\/a>proceeding, ensure you have:<\/p>\n<ul>\n<li>A Windows system (Windows 10, 11, or Server version).<\/li>\n<li>Basic knowledge of Command Prompt commands.<\/li>\n<li>Administrative privileges (for deleting protected folders).<\/li>\n<\/ul>\n<h3><strong>Open Command Prompt<\/strong><\/h3>\n<p>To open Command Prompt:<\/p>\n<ol>\n<li>Press \u2018Windows + R\u2019, type cmd in the Run dialogue box, and then press Enter.<\/li>\n<li>Alternatively,<a name=\"folder\"><\/a> search for Command Prompt in the Start menu and click Run as administrator if required.<\/li>\n<\/ol>\n<h3><strong>How to Create a Folder Using CMD?<\/strong><\/h3>\n<ol>\n<li>To create a new folder using the Command Prompt, use the mkdir (make directory) command followed by the folder name.<br \/>\nFor example, typing the command:<\/p>\n<pre>mkdir Projects<\/pre>\n<p>This command creates a new folder named <strong>\u201cProjects\u201d<\/strong> in the current directory.<\/li>\n<li>If you want to create a folder in a specific location, you can include the full path in the command. For example:\n<pre>mkdir \u201cC:\\Users\\Admin\\Documents\\New Folder\u201d<\/pre>\n<p>This command creates a folder named \u201cNew Folder\u201d inside the Documents directory of the admin user. Always use quotation marks if the folder name or <a name=\"delete\"><\/a>path contains spaces to ensure the command runs correctly.<\/li>\n<\/ol>\n<h3><strong>How to Delete a Folder Using CMD?<\/strong><\/h3>\n<ol>\n<li>To delete a folder using the Command Prompt, use the rmdir (remove directory) command followed by the folder name.<br \/>\nFor example:<\/p>\n<pre>rmdir Projects<\/pre>\n<p>This command deletes the \u201cProjects\u201d folder if it is empty.<\/li>\n<li>If you want to remove a folder along with all its files and subfolders, use the following command:\n<pre>rmdir \/s \/q \u201cC:\\Users\\Admin\\Documents\\OldProjects\u201d<\/pre>\n<\/li>\n<li>In this command:\n<ul>\n<li>\/s \u2013 Deletes all subfolders and files inside the specified folder.<\/li>\n<li>\/q \u2013 <a name=\"examples\"><\/a>Enables quiet mode, which skips the confirmation prompt.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Caution: This action permanently deletes the folder and all its contents. Use this command carefully to avoid accidental data loss.<\/p>\n<h3><strong>Common Examples<\/strong><\/h3>\n<ol>\n<li>To create a folder in the current directory, type:\n<pre>mkdir MyFolder<\/pre>\n<p>This command makes a new folder named <strong>MyFolder<\/strong>.<\/li>\n<li>To create a folder in another drive, type:\n<pre>mkdir D:\\Work\\Reports<\/pre>\n<p>This creates a folder named <strong>Reports<\/strong> inside the <strong>D:\\Work<\/strong> directory.<\/li>\n<li>To delete an empty folder, type:\n<pre>rmdir MyFolder<\/pre>\n<p>This removes the <strong>MyFolder<\/strong> directory if it\u2019s empty.<\/li>\n<li>To<a name=\"practices\"><\/a> delete a folder with all its files and subfolders, type:\n<pre>rmdir \/s \/q D:\\Work\\Reports<\/pre>\n<\/li>\n<\/ol>\n<h3><strong>Tips and Best Practices<\/strong><\/h3>\n<ul>\n<li>Use quotes for folder names with spaces (e.g., &#8220;New Folder&#8221;).<\/li>\n<li>Double-check paths before using \/s \/q to avoid deleting important data.<\/li>\n<li>Use the dir command to <a name=\"conclusion\"><\/a>confirm the folder\u2019s location before deleting it.<\/li>\n<li>For batch operations, you can combine multiple mkdir or rmdir commands in a .bat file.<\/li>\n<\/ul>\n<div style=\"background: #E6F0FF; padding: 15px; border-left: 4px solid #0047BA; margin: 20px 0;\"><strong>Managing files and folders on a Windows server?<\/strong><br \/>\nFor greater control and flexibility, consider using a <a href=\"https:\/\/www.webhosting.uk.com\/windows-vps\">Windows VPS Hosting <\/a>solution with administrator access and dedicated resources.<\/div>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>Using the Command Prompt to create and delete folders gives you faster control over file management and automation. Whether you are organising project directories or cleaning up old data, these CMD commands make the process efficient and straightforward.<\/p>\n<p>However, if you require additional assistance, feel free to contact our support team.<\/p>\n<p style=\"text-align: center;\"><em><strong>Want to know more about your system? Learn <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-your-windows-version-using-command-prompt\/\"> How to Find Your Windows Version Using Command Prompt<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managing folders in the Command Prompt (CMD) lets you quickly organise or clean up files without relying on the graphical interface. This guide explains how to create and delete folders&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-create-and-delete-folders-using-the-command-prompt%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=How%20to%20Create%20and%20Delete%20Folders%20Using%20the%20Command%20Prompt&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-create-and-delete-folders-using-the-command-prompt%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-create-and-delete-folders-using-the-command-prompt%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1886],"tags":[1408],"class_list":["post-21255","post","type-post","status-publish","format-standard","hentry","category-command-line","tag-command-line"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Create and Delete Folders Using the Command Prompt<\/title>\n<meta name=\"description\" content=\"Learn how to create &amp; delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create and Delete Folders Using the Command Prompt\" \/>\n<meta property=\"og:description\" content=\"Learn how to create &amp; delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-08T10:14:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T08:25:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Create and Delete Folders Using the Command Prompt\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to create &amp; delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to Create and Delete Folders Using the Command Prompt\",\"datePublished\":\"2025-11-08T10:14:58+00:00\",\"dateModified\":\"2026-06-03T08:25:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/\"},\"wordCount\":643,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"keywords\":[\"command line\"],\"articleSection\":[\"Command Line\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/\",\"name\":\"How to Create and Delete Folders Using the Command Prompt\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-11-08T10:14:58+00:00\",\"dateModified\":\"2026-06-03T08:25:06+00:00\",\"description\":\"Learn how to create & delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-create-and-delete-folders-using-the-command-prompt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create and Delete Folders Using the Command Prompt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create and Delete Folders Using the Command Prompt","description":"Learn how to create & delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/","og_locale":"en_GB","og_type":"article","og_title":"How to Create and Delete Folders Using the Command Prompt","og_description":"Learn how to create & delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2025-11-08T10:14:58+00:00","article_modified_time":"2026-06-03T08:25:06+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"How to Create and Delete Folders Using the Command Prompt","twitter_description":"Learn how to create & delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to Create and Delete Folders Using the Command Prompt","datePublished":"2025-11-08T10:14:58+00:00","dateModified":"2026-06-03T08:25:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/"},"wordCount":643,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"keywords":["command line"],"articleSection":["Command Line"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/","name":"How to Create and Delete Folders Using the Command Prompt","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"datePublished":"2025-11-08T10:14:58+00:00","dateModified":"2026-06-03T08:25:06+00:00","description":"Learn how to create & delete folders in Windows using Command Prompt. Simple CMD commands explained in this article.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-create-and-delete-folders-using-the-command-prompt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Create and Delete Folders Using the Command Prompt"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=21255"}],"version-history":[{"count":13,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21255\/revisions"}],"predecessor-version":[{"id":22712,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21255\/revisions\/22712"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=21255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=21255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=21255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}