If you have file called birthday.mp3, select it in Windows Explorer, press F2 and change the extension - the. Sometimes this is the simplest way to delete a file that refuses to budge using the Delete key.
You'll then have to restart it, since Explorer is also responsible for the start menu and the task bar. Now look through the list of running applications for Windows Explorer (File Explorer is still called Windows Explorer here!), right-click on it and choose End Task. If they won't close, you can force them by using Task Manager (right-click on the taskbar and choose Task Manager). You could 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 or File Explorer. If you've closed down all the obvious apps which could be using the file and you still can't delete it, it's probably because Windows Explorer (File Explorer in later versions) is accessing the file, perhaps to display a preview.
Here are the methods we'd try - in this order - to delete or rename a locked file. If the file is displayed as "in use" but there's no indication of which app is using it, you have two options to proceed: You can either use the handy tool Unlocker, which integrates itself into the Windows UI seamlessly, or delete or rename files over the command prompt without any third party software. In many cases, Windows even points you directly to the program in question in the error message, allowing you to simply close it and try again. When a file is classified as "in use" by Windows, it is typically still open by another process, which could be making changes to it. Here are five ways of deleting or renaming files which are in use. However, there are some files which can't be deleted: they're in use by an application, by Windows or for another reason. I also would like to state that 1 Mb for /tmp is not a lot of space.Usually it's easy to delete files, Indeed, it's much more common to delete a file by accident.
If you want it interactively (so you need to confirm deleting): cd /tmp/Īlso worth noting that a reboot will clear /tmp aswell as shown here: How is the /tmp directory cleaned up? So if /tmp/ is full of files after a reboot you need to investigate where those files originate from. The command pwd in there is not necessary but should show /tmp. Will empty the /tmp/ directory and remove all files and subdirectories. The name of the files in the /tmp/ directory most times give a clue to what program they belong. So do a sudo service mysql stop and sudo service apache2 stop if you have a mysql and/or apache running. BEFORE you start deleting stop all programs and services you are using since /tmp/ can be used by programs to temporarily store information for that session. You can assume that anything inside a tmp directory (/tmp/ /usr/tmp etc) can be deleted.