Tech Advisor

Delete a corrupt file from a Windows PC

-

Jim Martin reveals how to erase a corrupted file or one that refuses to be deleted in Windows

Usually, it’s easy to delete files, and it’s much more common to delete a file by accident. However, there are some files that pose a problem and can’t be erased.

A common problem is that a video file becomes corrupted and Windows can’t remove it, no matter whether you push the Delete key or even the Shift+Delete combo. It isn’t limited to video files, though. Practicall­y any file can resist deletion, although the reasons behind the problem are varied.

There are lots of other ways to try deleting files. Here are just some of them. Hopefully, you’ll find one of them works for you.

Close Windows Explorer

One of the most annoying error messages is ‘File in use’, which prevents you moving and deleting said file. If you’ve closed down all programs and you still can’t delete it, it’s probably because Windows Explorer is accessing the file, perhaps to display a thumbnail.

You can move all other files in the folder to a temporary folder and then delete the folder that contains the immovable file, but if this still doesn’t work, try closing Windows Explorer. To do this, start Task Manager (right-click on the taskbar and choose Task Manager). Now look through the list of running applicatio­ns for Windows Explorer, right-click on it and choose End Task. You can now use another applicatio­n – another file manager, say – to delete the file. You’ll have to install that first, of course.

Windows Safe Mode

A second option is to restart your PC in safe mode. Press F8 when the computer is starting up until you see the boot menu. Choose Safe Mode and a cut-down Windows will load. You can try deleting the file in Windows Explorer or File Explorer.

Third-party deletion utility

Lots of utilities can clean up troublesom­e files, including those that can’t be deleted. They tend to create a script that runs when Windows boots up at a time before any restrictio­ns are placed on the file preventing it being deleted. They include File Assassin (tinyurl.com/nhn36tp) and MoveOnBoot (tinyurl.com/8xgqh).

Use the Command Prompt

Yet another method is to use the Command Prompt. You’ll find this in your Start menu, or Start Screen. Just search for it, click on it and a black window will open. Change to the directory where the file is located by typing – for example, Now type to list the files in that folder. Next, type You can use the Tab key to autocomple­te the name of a file after typing the first few characters. You’ll need to include the extension of the file, so you’d type to get rid of that video file.

Change the file extension

Sometimes this is the simplest way to delete a file that refuses to budge using the Delete key. If you have file called birthday.avi, select it in Windows Explorer, press F2 and change the extension – the .avi – to something else such as .txt.

You’ll have to enable file extensions first, though, since Windows defaults to hiding extensions for known file types. To show extensions in Windows 8 onwards, click on the View tab and tick the ‘File name extensions’ box.

In previous versions, search for folder options in the Start menu. Click on it and a window will appear. Scroll down and untick the box for ‘Hide extensions for known file types’ and click OK.

 ??  ??

Newspapers in English

Newspapers from Australia