I tried to delete a file that I have two of, one slightly changed, so I could delete the older one and replace it with the new one I changed. When I tried to delete the file I g
Go to view-> Select Columns and check command line.
Now kill the java process that locked the file.
(command line option shows the path of the java proces from where it gets executed so that unnecessarily you don't need to kill all the java process.)