Permanently Deleting a File

Written by Barry Dysert (last updated June 28, 2021)

By default, most files that you delete from your system are not physically deleted. Instead, they are moved to the Recycle Bin. This is so you can recover a deleted file if you later discover that you actually needed it. However, if you're sure that you truly want to permanently delete a file (thus bypassing the protection the Recycle Bin affords you), it's easy to do.

If you're using Windows Explorer (Windows 7) or File Explorer (Windows 8 and Windows 10), there are a couple of ways to delete a file. One way is to select the file (i.e., single-click the file name) and press the keyboard's Delete key. Another way is to right-click the file and select Delete from the Context menu. In either case, the file is moved to the Recycle Bin. If, instead, you want to permanently delete the file, just hold down the Shift key when performing the delete. The file is permanently deleted and not stored in the Recycle Bin.

There is a known problem in Windows whereby using the keyboard to do a Shift+Delete doesn't always permanently delete the file. This can be troublesome, especially if the file you're trying to delete is very large. There seems to be no such problem, though, permanently deleting the file by holding Shift and deleting the file via the Context menu.

You should also be aware that if you use the command prompt, any files you delete from there will not end up in the Recycle Bin. They will, instead, bypass the bin and be permanently deleted.

 This tip (12430) applies to Windows 7, 8, and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...

MORE FROM BARRY

Getting Rid of a Built-in Windows Library

Most people like the Library feature of Windows, but for those who don't, this tip explains how to get rid of a built-in ...

Discover More

Renaming Multiple Files at the Same Time

It's possible to rename multiple files at the same time, but the new names of the files may leave a bit to be desired. ...

Discover More

Adding Locations to the Search Index

You can fine-tune Indexed Searches by adding locations to the search index. This tip tells you how.

Discover More
More WindowsTips

Creating a System Repair Disk on a USB Flash Drive

Having a system repair disk is almost as important as doing regular backups. CDs and DVDs, though, tend to get scratched ...

Discover More

Creating a List of Files in a Directory

Do you need a list of all the files in a directory? It's easy to create if you use the proper command-line commands.

Discover More

What are the Limits on File Names?

It's good to know what the limits are when naming files, although in most cases the limits are sufficiently high that ...

Discover More
Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is six minus 4?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips