# GET - DELETE fails to delete file

frank.kronheim@...
Guest

## GET - DELETE fails to delete file

Hi.

Using get -delete to avoid reading the same files twice, but still experiencing duplicates.
Seems the file gets downloaded although delete fail with file is in use.

Thought this was the purpose of get -delete not?

LOG:
Active session: [1] someuser@someserver.com
No file matching '*' found.
20210412222853902.xml     |          979 B |    0,0 KB/s | binary | 100%
Error deleting file '/..../Inbound/20210412222853902.xml'.
Permission denied.
Error code: 3
Error message from server: Failed to delete file /..../Inbound/20210412222853902.xml: The process cannot access the file '\....\Inbound\20210412222853902.xml' because it is being used by another process.
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort

martin
Site Admin
Joined:
Posts:
35,731
Location:
Prague, Czechia

## Re: GET - DELETE fails to delete file

I believe it's the server that prevents the delete, isn't it?

If you want a definitive answer, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

You can post new topics in this forum