Deleting a locked or in-use file

Grubeltrang's Freefile will help you find and terminate the process that has a wayward lock on the file. This Knowledge Base (KB) article outlines a whole bunch more possible causes and cures.

Some folks have also recommended Unlocker.