We often get a message "Cannot delete/rename file ...." and its been used by another person or program.
Unlocker is a useful tool which will solve the problem.
Simply right click the file or folder you want to unlock and select Unlocker. A window will appear with a list of processes locking the file or folder. Select the locks and click Unlock.