{"id":1873,"date":"2023-02-09T08:08:52","date_gmt":"2023-02-09T08:08:52","guid":{"rendered":"https:\/\/matob.web.id\/news\/?p=1873"},"modified":"2023-02-09T08:08:52","modified_gmt":"2023-02-09T08:08:52","slug":"how-to-delete-files-and-folders-using-command-prompt-cmd","status":"publish","type":"post","link":"https:\/\/matob.web.id\/news\/how-to-delete-files-and-folders-using-command-prompt-cmd\/","title":{"rendered":"How to Delete Files and Folders Using Command Prompt (CMD)"},"content":{"rendered":"<p><em>Command Prompt<\/em>\u00a0or abbreviated as CMD is a Windows terminal which is now very efficient in opening important data or files.\u00a0The function of the\u00a0<em>Command Prompt (CMD)<\/em>\u00a0is to be able to find out the ins and outs of a Windows system, one of which can delete important files and folders in your directory.<\/p>\n<p>Well, this time the author will provide a very easy bit of knowledge about how to <a href=\"https:\/\/matob.web.id\/random\/software\/how-to-delete-files-and-folders-using-command-prompt-cmd\/\">delete files and folders using CMD<\/a>. Here&#8217;s how.<\/p>\n<h2>EASY WAYS TO DELETE FILES AND FOLDERS USING COMMAND PROMPT (CMD)<\/h2>\n<p>1. Simultaneously press the <strong>Windows + R (Run)\u00a0<em>keys<\/em>\u00a0<\/strong>on your\u00a0laptop\u00a0<em>keyboard<\/em>\u00a0.\u00a0Then type CMD and click OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-777\" src=\"https:\/\/matob.web.id\/random\/wp-content\/uploads\/sites\/2\/2021\/01\/KEYBOARD-SHORT-CUT-RUN.jpg\" alt=\"\" width=\"768\" height=\"307\" title=\"\"><\/p>\n<p>2. The\u00a0<em>Command Prompt<\/em>\u00a0(CMD) window appears, then type in the directory where the file or folder you want to delete.\u00a0This time the author will give an example in the Local Disk C directory. If you want to switch drives and delete files and folders on Local Disk D you can type the command <em><strong>&#8220;D:&#8221;<\/strong>\u00a0<\/em><em>(without the quotes)<\/em>\u00a0and press Enter.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-778\" src=\"https:\/\/matob.web.id\/random\/wp-content\/uploads\/sites\/2\/2021\/01\/command-promt.jpg\" alt=\"\" width=\"768\" height=\"433\" title=\"\"><\/p>\n<p>3. After entering the Local Disk C directory, then press the command &#8220;<strong>dir<\/strong>&#8220;.\u00a0The function of this DIR is to know or see the files and folders that you store on the Local Disk C drive.\u00a0You can see the results in the image below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-779\" src=\"https:\/\/matob.web.id\/random\/wp-content\/uploads\/sites\/2\/2021\/01\/dir-command-1.jpg\" alt=\"\" width=\"768\" height=\"431\" title=\"\"><\/p>\n<p>After appearing your data and files, then find the file or folder you want to delete.\u00a0If you want to delete a file, type\u00a0<em><strong>del [filename]<\/strong>,<\/em>\u00a0if you want to delete a folder, type the command\u00a0<em>\u00a0<strong>rd [filename_folder]<\/strong>.\u00a0<\/em>For example, the author will delete the books folder and delete the file named usernames.txt.<\/p>\n<h3>CMD DELETE FILE<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-780\" src=\"https:\/\/matob.web.id\/random\/wp-content\/uploads\/sites\/2\/2021\/01\/del-command-1.jpg\" alt=\"\" width=\"768\" height=\"432\" title=\"\"><\/p>\n<p>Delete files on the Local Disk C drive, I will delete files with the name <em>&#8220;usernames&#8221;<\/em> with the command\u00a0<em><strong>del usernames.txt<\/strong>.\u00a0<\/em>Then the delete notification will appear then type\u00a0<strong><em>Y<\/em><\/strong>\u00a0, then <strong>Enter<\/strong>.\u00a0You can see the results below.<\/p>\n<h3>CMD DELETE FOLDER<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-781\" src=\"https:\/\/matob.web.id\/random\/wp-content\/uploads\/sites\/2\/2021\/01\/rd-cmd-command-1.jpg\" alt=\"\" width=\"768\" height=\"427\" title=\"\"><\/p>\n<p>Delete the folder on the Local Disk C drive, the author will delete the folder with the name\u00a0<em>&#8220;book&#8221;\u00a0<\/em>\u00a0with the command\u00a0<strong><em>rd book<\/em><\/strong>\u00a0then press\u00a0<em>Enter<\/em>\u00a0.\u00a0You can see the results in the image below.<\/p>\n<p>This is the tutorial on how to delete files and folders via CMD. May be useful.<\/p>\n<p>Also read : <a href=\"https:\/\/matob.web.id\/random\/1001\/create-a-new-folder-using-command-prompt-cmd\/\">How to Create a New Folder Using Command Prompt (CMD)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Command Prompt\u00a0or abbreviated as CMD is a Windows terminal which is now very efficient in opening important data or files.\u00a0The function of the\u00a0Command Prompt (CMD)\u00a0is to be able to find out the ins and outs of a Windows system, one of which can delete important files and folders in your directory. Well, this time the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1874,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-trick"],"_links":{"self":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts\/1873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/comments?post=1873"}],"version-history":[{"count":1,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts\/1873\/revisions"}],"predecessor-version":[{"id":1875,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts\/1873\/revisions\/1875"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/media\/1874"}],"wp:attachment":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/media?parent=1873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/categories?post=1873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/tags?post=1873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}