SpanishFrenchGermanItalianPortugueseArabicJapaneseKoreanChinese Russian
RSS | Bookmark
 
 
 

What To Do When . . .You Can’t Delete Something

Deleting something is usually one of the easiest computing tasks to accomplish. So much so that OS (operating system) developers such as Microsoft (www.microsoft.com) have added safeguards to their products to make sure trigger happy users think twice before deleting the wrong file and doing irreparable harm to their data or systems. But there are times when the simple act of deleting something can go awry. The causes are many, from the simple to the exotic, but they all have one thing in common: They can be extremely vexing and frustrating when you just want to, well, throw out the digital trash.


Working Status
Deleting a file is usually quite simple. The application that you’re working in may provide you with a warning before you delete a file, asking you to confirm that you indeed want to delete the file before proceeding. Once confirmation is given, that’s all it takes. Windows versions since Windows 95 all feature the Recycle Bin, the trash can icon on your Desktop that temporarily stores deleted files. The Recycle Bin is there in case you have second thoughts and decide you need a deleted file after all and is just an area on your hard disk set aside to temporarily hold files marked for deletion. Files stored in the Recycle Bin may last for a while, depending on the size of the Bin. (By default, Windows makes the Recycle Bin 10% of whatever the hard disk capacity is.) But be aware that the Recycle Bin doesn’t exist in certain situations. For example, if you delete a file stored in a thumb drive, there won’t be any Recycle Bin to bail you out if you change your mind. Ditto for network drives, which usually don’t have a Recycle Bin either; usually, a file stored in a network drive is immediately deleted. But, since network drives are frequently backed up by businesses, there may be a copy of the file that you can retrieve from backup media if you accidentally delete something you needed after all.

Try, Try Again
You try to delete a file, but you receive a warning telling you the file can’t be deleted. When this occurs, the first step is to determine whether the file is in use by a program. For example, if you attempt to delete a file that is open in Microsoft Word, switch to Word and then close the file within Word. Once you close the file in Word, you should be able to delete it with no problem. In most cases, Windows XP tells you the application that is using the file in question, so it’s pretty simple to close the file and then delete it. You can also get a clue as to the application that is using the file by the file’s icon or the extension. For example, if a file extension is .PDF (Portable Document Format), you know this is an Adobe Acrobat (www.adobe.com) file that is viewed using Adobe Acrobat or Adobe Acrobat Reader. Sometimes, even closing an application using a file isn’t enough. This can happen because an application does not play nice and refuses to let go of the file even though the application is closed. In some cases, an application may appear closed (you exited the application), but it is still running in the background. For example, some applications don’t close all the way when you exit but continue to run in the background. These apps may appear as a small icon on your System Tray (the area in Windows on the lower-right portion of the screen where you may see a number of small icons). If you suspect this is the problem, simply locate the application’s icon in the System Tray and close the application. For most programs, right-clicking the System Tray icon will launch a small menu that contains an Exit or Close command. Click the appropriate command and then delete the file. If the application using the file you want to delete is closed, there is no System Tray icon, and you still can’t delete the file, you may be grappling with a poorly programmed app that refuses to release a file even after you exit the application in the normal way. To close this type of stubborn program, press CTRL-ALT-DELETE to launch the Windows Task Manager. Click the Processes tab and look through the list of programs and processes running in your system. Unfortunately, the contents of this list are usually program names ending in .EXE or file names ending in .DLL, so things may appear a bit cryptic. Usually, the name of the program executable file for an application matches the name of the application: For example, Excel’s program executable file is Excel.exe. Scan the list, find your application’s executable file, and click the End Process button to close it. If the name of the application’s program executable file is not obvious, browse to the program folder that contains the application’s program files. To do this, double-click My Computer, Local Disk (C:), and the Program Files folder. Scroll through the list of folders until you locate the folder containing the program in question and then double click it to open it. Look for file names ending with .EXE; one of those will be the app’s main program executable, which you can then close using the Windows Task Manager’s Processes tab If all else fails, the inability to delete a file may be an indicator of file system corruption. This means the area of the hard drive where the file is stored is corrupted. This could be due to a software or hardware issue. For example, if an area of your hard drive is physically damaged, strange behavior can occur. To have Windows find and correct file system errors, click Start, All Programs, Accessories, System Tools, and Disk Defragmenter. Click the Analyze button in the Disk Defragmenter window. Windows will look for file system errors and correct anything it finds, if possible. Now try to delete. If you still can’t delete the file after trying this software fix, there may be serious errors with your hard disk signaling an impending hard drive failure. And that is a real problem requiring swift action. Back up your important files and replace the hard disk as soon as possible.

Video File Issues
It is possible that you may receive an Access Denied or Windows Can’t Delete The File Because It’s In Use error message while trying to delete a file ending in the .AVI (Audio Video Interleave) file extension. This problem can occur because WinXP creates thumbnails for video files (such as AVI files) that show the first frame of the video. This makes it easy for users to see what video content a file contains without having to open it. To provide this functionality, WinXP uses a file called the Shell Media Extension (Shmedia.dll). This feature usually works perfectly, but whenever a video file is corrupted or not playing nice with Shmedia.dll, the system “locks” the file and doesn’t release it, even after you reboot. To solve this problem, you can do one of two things. First, you can open up a command line by clicking Start and Run and typing cmd in the text box. At the command prompt, type CD drive where file is stored:\folder where file is stored and press ENTER. For example, if the file is kept in a folder called Video in your C: drive, type CD C:\Video to open the folder. Type dir at the command prompt to see the list of files contained in the folder and then type DEL file name (where file name is the name of the file you want to delete) to delete the file. If the name of the folder is greater than six characters, you must shorten it by entering ~1 after the first six characters. For example, if the name of the folder you are trying to get to is called Program Files, to open the folder from a command prompt you must type CD C:\progra~1 to open the folder. That’s because the command prompt environment can’t handle long file names. The second approach requires modifying your Windows Registry. (NOTE: Making changes to the system using the Registry Editor may cause errors that render the operating system unstable. You should always create a backup before editing the Registry.) To do this, click Start and Run and then type regedit in the text box. With Registry Editor open, locate the following key: HKEY_CLASSES_ROOT\SystemFileAssociations\.avi\shellex\PropertyHandler\{87D62D94-71B3-4b9a-9489-5FE
6850DC73E}. Click the key in the right-hand panel of the Registry Editor to highlight it, right-click the key, and select Delete from the context menu. You’ll give up the thumbnail previews of video files feature, but you’ll now be able to delete the offending AVI file.

For Your Own Protection
You keep deleting a file in one of your Windows system folders, but whenever you open the folder that contained the file, the file is there again. What’s going on? To prevent users from accidentally destroying their Windows installations, Win2000/XP contains a feature which is enabled by default called Windows File Protection. (The feature is called System File Protection in WinMe.) If you delete a file that Windows deems important, that file is automatically restored to its proper location from a cache of critical files that Windows keeps on your hard drive. If you’re trying to delete a file located in any of the Windows system folders, chances are you won’t be able to do it unless you disable Windows File Protection. And disabling Windows File Protection, while straightforward, requires some editing of a DLL file using a hex editor. Unless you have a really good reason to do this, you’re better off leaving Windows File Protection alone. It’s there for your protection. Only technically savvy users who are very experienced at tweaking and customizing their systems should attempt to remove Windows File Protection and delete files stored in the Windows system folders.


FEATURES FEED :


Add to Technorati Favorites