Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


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.

GET - DELETE fails to delete file


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?

Active session: [1]

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