Computer Help Community

Community

Cyber Tech Help Community

New Tutorials

PC Tutorials

New Downloads

More Downloads
PC Downloads

Member Testimonials

Open Member Quote   Thanks so very, very much for your kind help. My wife is thrilled. Needless to say, so am I. And our thanks to CyberTechHelp for such a great and generous service - sher07  Close Member Quote
Member Testimonials
MY CYBER TECH HELP

LATEST TOPICS

Tech Help Community

Free Antivirus Scan

Free Virus Scan and a listing of the top 10 viruses in the wild - Free Antivirus Scan
Free Online Antivirus Scan

File Extension Database

Find what program a filetype belongs to in our searchable File Extension Database.
File Extension Database

Related Microsoft Links

Services
Cyber Tech Help Community

To the top of the page to top

 



Tutorials | How to delete files and folders

Publish date: 15:03 Thursday, 22nd September 2005
Written by: MishY
Audience intended for: Windows Users
Category: Computer Basics

Go up a levelGo up a level

When deleting files or folders in Windows the default delete behaviour is for the file or folder to be moved to the recycle bin. There it will remain till either a) you empty your recycle bin or b) you fill your recycle bin. When your recycle bin is full the oldest files will be permanently deleted to clear room for the newly deleted files.

There are many ways to delete files and folders. This tutorial will guide you through the processes:

First MethodHow to delete files and folders

This is the easiest method to delete files and folders in Windows.

  1. You can use either Windows Explorer or My Computer to navigate to the file or folder you wish to delete.
    • Using Windows Explorer: Open Windows Explorer (Left click Start then Programs then Accessories then Windows Explorer) or (Hold down the Windows key and press E)
    • Using My Computer: Windows XP Users click Start then My Computer. All other Windows users double left click the My Computer icon on your desktop.
  2. Navigate to the file or folder that you would like to delete.
  3. Highlight the file or folder by left clicking it once.
  4. Now press the Delete key on your keyboard.
  5. A window will then popup asking for confirmation to send the file or folder to the Recycle Bin. Click Yes to move the file to the recycle bin or No to keep the file where it is.

    Send to the Recycle Bin confirmation box

Second MethodHow to delete files and folders

  1. You can use either Windows Explorer or My Computer to navigate to the file or folder you wish to delete.
    • Using Windows Explorer: Open Windows Explorer (Left click Start then Programs then Accessories then Windows Explorer) or (Hold down the Windows key and press E)
    • Using My Computer: Windows XP Users click Start then My Computer. All other Windows users double left click the My Computer icon on your desktop.
  2. Navigate to the file or folder that you would like to delete.
  3. Highlight the file or folder by left clicking it once.
  4. Then from the top toolbar click File then Delete.

    Delete a file or folder using windows explorer

  5. A window will then popup asking for confirmation to send the file or folder to the Recycle Bin. Click Yes to move the file to the recycle bin or No to keep the file where it is.

    Send to the Recycle Bin confirmation box

Third MethodHow to delete files and folders

In this example I will delete a file from my desktop however this method can be used to drag files from a Windows Explorer window to the recycle bin also.

  1. Left click the file or folder you wish to delete and keep the mouse button held down. Then drag the file on top of the Recycle bin.

    Delete a file or folder dragging on to the recycle bin

Fourth MethodHow to delete files and folders

This method can be used by Windows XP, and Windows 2003 users.

  1. Open My Computer ((Left click Start/My Computer) or double click the My Computer icon on your desktop).
  2. Navigate to the file or folder you want to delete.
  3. Then highlight the file or folder by left clicking it once.
  4. Now click Delete this file, or Delete this folder from the File and Folder Tasks menu in your Common Tasks toolbar.

    Delete a file or folder using Common Tasks

  5. A window will then popup asking for confirmation to send the file or folder to the Recycle Bin. Click Yes to move the file to the recycle bin or No to keep the file where it is.

    Send to the Recycle Bin confirmation box

Using the Command PromptHow to delete files and folders

Important Note: when deleting files and folders from the command prompt these files/folders do not get soft-deleted to the recycle bin. Instead they are permanently deleted.

How to delete a file using the Command PromptHow to delete files and folders

To start the command prompt in Windows left click Start then Run. Type in "CMD" (without the "") and hit Enter.

  1. First locate the file that you would like to delete.
  2. Then on the command prompt type:

    Code:


    del filename.txt


    Delete a file using command line

    and then hit Enter.

  3. You can then use:

    Code:


    dir


    List files and folders using command line

    and then hit Enter to make sure your file has been deleted.

Note: If you want to delete a file with spaces in its name you must wrap the name in "". For example:

Code:


del "filename 1"

If you want to delete more than one file you can do so like this:

Code:


del "filename 1.txt" "filename 2.txt" del "filename 3.txt"


How to delete a folder using the Command PromptHow to delete files and folders

To start the command prompt in Windows left click Start then Run. Type in "CMD" (without the "") and hit Enter.

  1. First locate the folder that you would like to delete.
  2. Then on the command prompt type:

    Code:


    rmdir foldername


    Delete a folder using command line

    and then hit Enter.

  3. You can then use:

    Code:


    dir


    List files and folders using command line

    and then hit Enter to make sure your folder has been deleted.

Note: If you want to delete a folder with spaces in its name you must wrap the name in "". For example:

Code:


rmdir "foldername 1"

If you want to delete more than one folder you can do so like this:

Code:


rmdir "foldername 1" "foldername 2" "foldername 3"

 

Please Note: if you have any questions about this tutorial please ask on our support forums
If you have written a tutorial of your own and would like to have it here on Cyber Tech Help all you have to do is Submit your tutorial and it will be reviewed by the Administrator.