- #How to delete junk files in windows 10 using cmd how to
- #How to delete junk files in windows 10 using cmd update
- #How to delete junk files in windows 10 using cmd full
- #How to delete junk files in windows 10 using cmd free
Select all of them pressing Ctrl+A and delete them using Shift+delete. You will see a bunch of junk files and folders. Using run you can easily remove junk files from your computer.įirst press Win+R a dialogue box will open. Run is an app that comes with Windows 10.
![how to delete junk files in windows 10 using cmd how to delete junk files in windows 10 using cmd](https://static.toiimg.com/photo/msid-85731065,width-800,resizemode-4,imgsize-251155/85731065.jpg)
#How to delete junk files in windows 10 using cmd how to
How to Remove Junk Files From Windows 10įirst, I am going to share some easy ways to remove junk files from your computer operating on Windows 10.
#How to delete junk files in windows 10 using cmd free
Today in this article I am going to show you some ways to remove junk files safely and free up some disk space on your computer. These files are usually of no use to users significantly and so they can be removed from your computer to free up space, much like cache. User logs and report logs or temporary files are also junk files.
#How to delete junk files in windows 10 using cmd update
Very handy!ĭeleting files with these methods is certainly not as intuitive as using the graphical methods, but it’s good to have these methods just in case you need them.Junk files are the files created by the operating system of your computer, different types of software during update or installation. del "word*"įinally, if you’d like to remove all files from the current folder, use the following command: del *.*Īnd that’s how you delete files and folders with Command Prompt. For example, to delete all files whose names start with “word”, you’d use the following command: Tip: Add the asterisk before the word to delete all files that end with your specified word. This command selects all PNG files in the current folder and deletes them.Īnother creative use of the del command is to delete files that contain a certain word in their names.
![how to delete junk files in windows 10 using cmd how to delete junk files in windows 10 using cmd](https://www.isunshare.com/images/article/windows-10/remove-junk-files-from-pc-windows-10/delete-junk-files-with-disk-cleanup.png)
For example, you can remove certain types of files, remove only the files that have a certain word in their names, and so on.įor example, to delete all the PNG files in your current folder in Command Prompt, you can use the following command: Tip: Feel free to replace “.png” with any file extension you want to delete. With the del command, you can use your creativity to delete your files in various ways. rmdir /s "C:\Users\username\Desktop\MyFolder"Īnd that’s all. If the folder you want to delete contains any files or folders in it, add the /s parameter to the command and this will remove your folder including all its subfolders and files within them.
![how to delete junk files in windows 10 using cmd how to delete junk files in windows 10 using cmd](https://static.toiimg.com/photo/msid-85731061,width-800,resizemode-4,imgsize-229633/85731061.jpg)
rmdir PATHįor example, to delete a folder named “MyFolder” on your desktop, use the following command replacing username with your own username: rmdir "C:\Users\username\Desktop\MyFolder"Īnd the command will get the specified folder removed from your PC! If the folder is not empty, use the second command given below to delete your folder. Note: Make sure that the folder you’re deleting doesn’t contain any files or folders.
#How to delete junk files in windows 10 using cmd full
In the Command Prompt window that opens, type the following command replacing PATH with the full path to the folder you want to delete. Do this by opening the Start menu, searching for “Command Prompt”, and clicking “Run as Administrator” on the right of the search results. To use this command, open a Command Prompt window. You can’t restore your folders once they have been deleted with this command. Warning: Know that the rmdir command removes folders without moving them to the Recycle Bin. This command helps you delete folders as well as their subfolders and the files inside them.
![how to delete junk files in windows 10 using cmd how to delete junk files in windows 10 using cmd](https://i0.wp.com/neosmart.net/blog/wp-content/uploads/sites/5/2014/10/DELTEMP_WVista_3.png)
To delete folders (also called directories) on your PC, use Windows’ built-in rmdir command. Here’s what the above command looks like when paired with the /p parameter: del /p "C:\Users\username\Desktop\MyFile.txt"ĭelete Folders with Command Prompt on Windows 10 Similarly, you can add the /f parameter to the command to force delete your read-only files. To customize your deletion process, you can use a couple of parameters that the del command offers.įor instance, you can add the /p parameter to the command to get Command Prompt to ask for your confirmation before deleting a file. For example, to delete a file named “MyFile.txt” placed on your desktop, use the following command replacing username with your own username: del "C:\Users\username\Desktop\MyFile.txt"Īnd your specified file is now deleted from your storage!