How to Delete a File in Windows 10


This tutorial will show you different ways on how to delete a file in Windows 10.

Deleting a file from a removable drive will be permanently deleted by default.

Deleting a file from an internal drive will be deleted to the Recycle Bin by default, and permanently deleted when you empty the Recycle Bin.


 CONTENTS:






Delete File in Windows 10 OPTION ONE Delete File in Windows 10
Delete File using Keyboard Shortcut

1. Select the file(s) you want to delete, and press the keys you want in the table below.

Keyboard Shortcut Action Performed
Ctrl+D Delete to Recycle Bin
Del or Delete Delete to Recycle Bin
Shift+Delete Permanently delete

2. If you chose to permanently delete, then either click/tap on Yes, press Y, or press Enter to confirm. (see screenshot below)

Name:  Confirm.png
Views: 103
Size:  21.0 KB






Delete File in Windows 10 OPTION TWO Delete File in Windows 10
Delete File from File Explorer Ribbon

1. Open File Explorer (Win+E).

2. Click/tap on Home tab. (see screenshot below)

3. Navigate to and select the file(s) you want to delete.

4. Perform the action you want to do below:

A) Click/tap on the Delete button in the ribbon to delete to Recycle Bin.

OR

B) Click/tap on the arrow under the Delete button in the ribbon, and click/tap on Recycle or Delete permanently in the drop menu for what you want.

Name:  Delete_file_File_Explorer_ribbon.jpg
Views: 103
Size:  51.5 KB

5. If you chose to permanently delete, then either click/tap on Yes, press Y, or press Enter to confirm. (see screenshot below)

Name:  Confirm.png
Views: 103
Size:  21.0 KB






Delete File in Windows 10 OPTION THREE Delete File in Windows 10
Delete File from Context Menu

1. Open File Explorer (Win+E).

2. Navigate to the file you want to delete.

3. Perform the action you want to do below:

A) Right click or press and hold on the file, and either press the D key or click/tap on Delete. (see screenshot below)

Name:  Delete_file_context_menu-1.jpg
Views: 102
Size:  67.5 KB

OR

B) Press and hold Shift key and right click on the file, release the Shift key, and either press the D key or click/tap on Delete. (see screenshot below)

Name:  Delete_file_context_menu-2.jpg
Views: 105
Size:  68.9 KB






Delete File in Windows 10 OPTION FOUR Delete File in Windows 10
Permanently Delete File in PowerShell

For more Remove-Item command usage details, see: Remove-Item | Microsoft Docs

1. Open PowerShell or an elevated PowerShell depending on the required rights to delete the file you want.

2. Type the command below into PowerShell, and press Enter. (see screenshot below)

Remove-Item -Path "Full path of file with extension" -Force

Substitute Full path of file with extension in the command above with the actual full path of the file with its extension you want to delete.

For example: Remove-Item -Path "C:\Users\Brink\Desktop\File.txt" -Force


Name:  Delete_file_PowerShell.png
Views: 99
Size:  9.7 KB

3. When finished, you can close the Powershell window if you like.






Delete File in Windows 10 OPTION FIVE Delete File in Windows 10
Permanently Delete File in Command Prompt

For more del command usage details, see: del | Microsoft Docs

1. Open a command prompt or an elevated command prompt depending on the required rights to delete the file you want.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

del /f /s /q /a "Full path of file with extension"

Substitute Full path of file with extension in the command above with the actual full path of the file with its extension you want to delete.

For example: del /f /s /q /a "C:\Users\Brink\Desktop\File.txt"


Name:  Delete_file_command_prompt.png
Views: 99
Size:  9.8 KB

3. When finished, you can close the command prompt window if you like.






Delete File in Windows 10 OPTION SIX Delete File in Windows 10
Permanently Delete File in Command Prompt at Boot

1. Boot to a command prompt at boot.

 2. To Verify Drive Letter the File is in at Boot

The drive letter may not always be the same at boot as in Windows, so be sure to verify its drive letter before doing the command in step 3 below for this to work.

A) Type diskpart into the command prompt, and press Enter. (see screenshot below)

B) Type list volume into the command prompt, and press Enter.

C) From the listed volumes, look for and verify the drive letter of the drive that includes the folder you want to delete.

D) In the command prompt, type exit, and press Enter.

Name:  Delete_file_command_prompt_at_boot-1.jpg
Views: 100
Size:  62.5 KB


 3. To Delete the File

A) Type the command below into the command prompt, and press Enter. (see screenshot below)

del /f /s /q /a "Full path of file with extension"

Substitute Full path of file with extension in the command above with the actual full path of the file with its extension you want to delete. Be sure to use the correct drive letter from step 2.

For example: del /f /s /q /a "D:\Users\Brink2\Desktop\File.txt"


B) Close Name:  Close.jpg
Views: 92
Size:  1.3 KB the command prompt.

Name:  Delete_file_command_prompt_at_boot-2.jpg
Views: 101
Size:  72.2 KB

4. Click/tap on the Continue button to restart the computer and continue to Windows 10. (see screenshot below)

Name:  Delete_file_command_prompt_at_boot-3.jpg
Views: 99
Size:  28.9 KB


That's it,
Shawn