Windows Command Prompt Overview
What is Command Prompt? It is a command-line interpreter application also known as cmd.exe or cmd. It can only be used in Windows operating system, and it is a gorgeous tool that can help you do a lot of advanced operations and solve some Windows issues.
Command Prompt is functional, you can deal with USB virus remove with cmd or activate Windows using cmd, and you can use it to delete files and folders very fast with the del command and rmdir command, especially if you have several items to erase. We will teach you how to use cmd delete files with a detailed tutorial.
First, you can check a video to help understand how to use Command Prompt to delete files, and we have listed the essential moments:
- 00:15 How to open Command Prompt
- 00:27 Use the del command to delete files
- 01:56 Use the del command to delete folders
How to Use CMD Delete File Step by Step
First, you need to know that using cmd to delete files is not like putting files and folders into Windows Recycle Bin. You can recover files from Recycle Bin folder directly, but it is not easy to recover cmd deleted files without third-party recovery software. So be careful when you are deleting files with cmd. Make sure you delete the files you don't want anymore. Now let us learn how to open cmd first.
How to Open Command Prompt on Windows 11/10
We will teach you the easiest way to open the Command Prompt on Windows.
Step 1. Click "Start", and you'll see the search box.
Step 2. Type in cmd.
Step 3. Right-click cmd and select "Run as Administrator".
Step 4. Now you can use Command Prompt to delete files.
How to Use CMD Delete File with del
Once you have learned how to open the Command Prompt, you can type in command lines. Follow the tutorial and type in the correct command lines to delete files.
Step 1. Type in del with a space after it.
Step 2. Then type the path for each file you want to delete, and remember to add spaces to separate each file name.
Step 3. Make sure you type in the right path and press the Enter key.
How to Use CMD Delete Folders with rmdir
You will need a different command to delete folders with cmd on your computer. Keep reading and follow the operations:
Step 1. Type in rmdir with a space after it.
Step 2. Then type the path for each folder you want to delete.
Step 3. Make sure you type in the right path and press the Enter key.
Recover Deleted Files/Folders from CMD with the File Recovery Tool
It is possible that you accidentally delete key files and folders, and you don't know how to recover permanently deleted files. You can easily return these essential items with EaseUS Data Recovery Wizard.
No matter it is you delete file with PowerShell or with Command Prompt, EaseUS Data Recovery Wizard can help you recover deleted files easily. This professional recovery tool also can be handy for home users.
You don't have to worry about how to recover deleted videos, photos, music, emails, and documents. EaseUS Data Recovery Wizard can ensure you don't bother with data loss anymore.
It is also a handy tool, and you can recover deleted files and folders in three steps.
Step 1. Run EaseUS Data Recovery Wizard. Choose the drive where you lost files and start scanning by clicking "Search for Lost Data". This software allows you to recover lost data from all devices, including HDD, SSD, USB drive, SD card, pen drive, camera, etc.
Step 2. Browse the full scan results. You can choose the file type you need by clicking on the file type filter. EaseUS data recovery software supports 1000+ file types like photos, videos, documents, emails, audio files, and many more.
Step 3. Select the files you want to preview. Click "Recover" and set a storage location or Cloud drive to save the recovered data.
Summary
Except for deleting files with Command Prompt, there are many other things cmd can do on Windows. For example, if you can't find the file and find it is hidden. It is possible to show hidden files using cmd.
When you are using the computer or laptop, if you want to get back deleted videos, photos, or files, download EaseUS Data Recovery Wizard immediately, and you can find your lost files in one click.
Command Prompt Delete File FAQs
We have listed some further questions and answers here:
What is delete command in cmd?
You will need the del command and rmdir command to delete files and folders with Command Prompt. And the del command is the most common command to erase one or multiple files.
How do I delete corrupted files in cmd?
When you find you can't commonly delete corrupted files, you can try deleting files with cmd.
- 1. Click "Start", and you'll see the search box.
- 2. Type in cmd.
- 3. Right-click cmd and select "Run as Administrator".
- 4. Type the following command Del /F /Q /A, and add the path of corrupted files.
- 4. Press the Enter key.
How do I delete multiple files in command prompt?
You can delete a single file and multiple files with the del command.
- 1. Type in del with a space after it.
- 2. Then type the path for each file you want to delete, and remember to add spaces to separate each file name.
- 3. Make sure you type in the right path and press the Enter key.
How delete all files and folders using cmd?
You can use cmd to delete all the files and folders using del and the /S flag ( to tell cmd to remove all files from all subdirectories).
Was This Page Helpful?
Jaden is one of the editors of EaseUS, who focuses on topics concerning PCs and Mac data recovery. Jaden is committed to enhancing professional IT knowledge and writing abilities. She is always keen on new and intelligent products.
Dany is an editor of EaseUS who lives and works in Chengdu, China. She focuses on writing articles about data recovery on Mac devices and PCs. She is devoted to improving her writing skills and enriching her professional knowledge. Dany also enjoys reading detective novels in her spare time.
Related Articles
-
Disk Boot Failure - Insert System Disk and Press Enter in Windows 10
Tracy King/2024-05-29
-
(Solved!) Windows Update Stuck on Restarting🔥
Jerry/2024-01-22
-
[Too Slow!] Fix: Windows 10 APPs Take Forever to Load
Brithny/2024-01-11
-
Disk Space Usage Bar Missing - How to Recover It
Oliver/2024-05-31
EaseUS Data Recovery Services
EaseUS data recovery experts have uneaqualed expertise to repair disks/systems and salvage data from all devices like RAID, HDD, SSD, USB, etc.