when deleting files one by one error is generated as \"the process cannot access the file \' because it is being used by another process when trying to delete file\"
cod
You will not be able to delete any file when is is locked by another process.
You first have to find out which process locks the file. This is possible with SysInternals ProcessExplorer. Use the "Find handle or DLL" function.