How to Delete a File at the Command Prompt

Techwalla may earn compensation through affiliate links in this story.

Though largely antiquated, the standard DOS command prompt has still managed to ship with every version of Windows, including the new Windows 7. This is because, though it is slightly harder to learn than the point-and-click environment of the Windows desktop, it is by far a faster, more-efficient tool capable of several tasks all in one window.

Advertisement

Step 1

Click on the Windows "Start" button in the lower left side of the desktop.

Video of the Day

Step 2

Click the "Run" button on the resulting menu that pops up.

Step 3

Type "CMD" in the text box that appears after clicking "Run."

Step 4

Using the command prompt, navigate to the folder that holds your file to be deleted.

Advertisement

Step 5

Type "Del," then the full name of the file you wish to delete. For example, "Del car.jpg" would delete a picture file called "car.jpg."

Tip

Using the command prompt offers a very useful tool for any times where a mouse may not be accessible.

Warning

Though using the wild card symbol "*" before, after, or both in place of a file name allows for easy file deletion, it can often lead to accidental data loss.

Advertisement

references