<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>delete folder Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/delete-folder/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 07 Mar 2020 00:47:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to delete files and folders from CMD in Windows 10</title>
		<link>https://www.osradar.com/how-to-delete-files-and-folders-from-cmd-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-delete-files-and-folders-from-cmd-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sat, 07 Mar 2020 00:47:51 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[delete files]]></category>
		<category><![CDATA[delete folder]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://windowsmen.com/?p=855</guid>

					<description><![CDATA[<p>Hi, how are you? Windows was born with the purpose of providing users with a graphical interface when using the computer. In fact, in the old DOS or MS-DOS systems everything was controlled by commands. However, Windows came with an intuitive graphical interface that took advantage of the use of a new peripheral known as [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-delete-files-and-folders-from-cmd-in-windows-10/">How to delete files and folders from CMD in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, how are you? Windows was born with the purpose of providing users with a graphical interface when using the computer. In fact, in the old DOS or MS-DOS systems everything was controlled by commands. However, Windows came with an intuitive graphical interface that took advantage of the use of a new peripheral known as the mouse. Currently, all users use Windows with a mouse and navigate through files and folders using the file explorer. On the other hand, it is still possible to do it classically with the CMD. Consequently, we will see how to delete files and folders from CMD in <a href="https://www.microsoft.com/en-us/software-download/windows10" target="_blank" rel="noreferrer noopener" aria-label="Windows 10 (opens in a new tab)">Windows 10</a>.</p>



<h2>Use CMD to delete folders and files</h2>



<p>The idea of a terminal is traditionally associated with Linux operating systems. However, Windows also has its own terminal inherited from MS-DOS. This is known as Command Prompt. You will probably have used the <strong>PING</strong> command to check internet connectivity or <strong>cd</strong> to go to the hard drive directories. However, we will see how to delete folders and files using the CMD. Although it is more comfortable to use the graphical interface, it is always convenient to have this method. Because, sometimes the search button is broken. With this in mind we will use the DEL command. Next, please use the CD command to enter the directory. The syntax is as follows:</p>



<pre class="wp-block-preformatted"> DEL /F /A file.extension</pre>



<p>Please remember to replace the file name with its respective extension. To enter the cmd, just press the Win+Q combination and type CMD.</p>



<figure class="wp-block-image size-large"><img src="https://windowsmen.com/wp-content/uploads/2020/03/del.jpg" alt="Run a CMD" class="wp-image-862"/><figcaption>Run a CMD</figcaption></figure>



<figure class="wp-block-image size-large"><img src="https://windowsmen.com/wp-content/uploads/2020/03/del2.jpg" alt="Delete a file with the DEL command" class="wp-image-865"/><figcaption>Delete a file with the DEL command</figcaption></figure>



<p>The /F switch allows you to force the file to be deleted. While the /A allows to delete only the files marked as <em>ready for archiving</em> by Windows.</p>



<h2>How to delete folders with CMD</h2>



<p>To delete folders, the process is similar to that of deleting files. However, the change is to use the RD command. Similarly, use the CD command to enter the directory where the folder to be deleted is located. To delete folders, the process is similar to that of deleting files. However, the change is to use the RD command. Similarly, use the CD command to enter the directory where the folder to be deleted is located. The syntax is as follows:</p>



<pre class="wp-block-preformatted"> RD /S folder</pre>



<p>Please remember to replace folder with the name of the folder to be deleted.</p>



<figure class="wp-block-image size-large"><img src="https://windowsmen.com/wp-content/uploads/2020/03/del3.jpg" alt="Delete a folder using the RD command." class="wp-image-867"/><figcaption>Delete a folder using the RD command.</figcaption></figure>



<p>The /S parameter indicates that we will also delete all subfolders within the folder.  If it is not used and there is a folder inside, it will not delete the main folder.</p>



<h2>What to do if there is an error message that prevents you from deleting the folder</h2>



<p>It is likely that when you use the DEl or RD command, the system will throw an error message that prevents you from doing the task. This usually happens because of a permission problem. Specifically, when you try to delete a folder you don&#8217;t own. Or when trying to delete a system folder. In those cases, CMD will not allow you to delete the folder or file. To solve this problem, just open CMD with administrator privileges:</p>



<figure class="wp-block-image size-large"><img src="https://windowsmen.com/wp-content/uploads/2020/03/del-1.jpg" alt="Runs a CMD with administrator privileges " class="wp-image-868"/><figcaption>Runs a CMD with administrator privileges </figcaption></figure>



<p>In this way, it is possible to delete any type of folder or file. The exception is if you try to delete a protected system file.</p>



<h2>Conclusion</h2>



<p>In the final analysis, we saw how to delete files and folders from the CMD in Windows 10. If you like to manage your computer with the terminal, then this is your option. Before saying goodbye, I invite you to our post about an <a href="https://windowsmen.com/switch-is-a-free-alternative-dock-for-windows-10/" target="_blank" rel="noreferrer noopener" aria-label="alternative dock (opens in a new tab)">alternative dock</a> for Windows 10. Bye!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-delete-files-and-folders-from-cmd-in-windows-10/">How to delete files and folders from CMD in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-delete-files-and-folders-from-cmd-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
