How to Delete a File at the Command Prompt

By Gabriel Dockery

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.

Step 1

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

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.

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."

Tips & Warnings

  • Using the command prompt offers a very useful tool for any times where a mouse may not be accessible.
  • 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.

References & Resources