The error message tells you what the problem is:
I am getting file access error saying it is being using by another process
The file is in use: it is open and as a result locked.
Somewhere - probably elsewhere in your code - you have opened the file (probably for write access, but it could be read) and not closed the stream that you opened. Until that stream is closed, the file is locked and cannot be reopened for writing or deleted.
So go through your code with a fine tooth comb: look at everywhere you reference that file, and follow it until you close the stream. If you don't close it, you can't delete it - so when you are finished with the file, close and dispose the objects you used to access it.