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.

Options
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)

Options

Topic review

martin

@pferrucci: The file might have been temporarily locked by another application (e.g. by an antivirus), at the time WinSCP was trying to delete it.

Reinstallation as suggested by @Guest can indeed hardly help.
Elwood

There's nothing to install. I used the portable version. It's just 2 files, WinSCP.exe and WinSCP.com

Thanks
Guest

@pferrucci: You might try re-installing 6.3.1 over the current installation. That appears to have fixed it for me. (I actually re-installed the previous version first, but I'd give either way or both a try.)
pferrucci

I have the same problem. I am using version 6.3.1 using the commande line.
I am logged as mydomain\currentuser and the MSDOS console is opened as "administrator" so I should be able to delete any files.

I execute:
WinSCP.com /command "open myftp-details-here" "synchronize local -delete \Install /Install -filemask=|.stfolder/;.stversions/" exit

...
Synchronizing...

Error deleting file '\Install\one-directory\one-simple-file'.
System Error.  Code: 5.
Access denied

I used the icacls tool to look at the user permissions.
Here are the permissions on one-directory:
BUILTIN\Administrators:(I)(OI)(CI)(F)

NT AUTHORITY\System:(I)(OI)(CI)(F)
mydomain\currentuser:(I)(OI)(CI)(F)
OWNER:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(OI)(CI)(RX)
BUILTIN\Users:(I)(CI)(S,WD,AD)

Here are the permissions on one-simple-file:
BUILTIN\Administrators:(I)(F)

NT AUTHORITY\System:(I)(OI)(CI)(F)
mydomain\currentuser:(I)(F)
BUILTIN\Users:(I)(RX)

If I delete one-simple-file from Windows explorer, it deletes it not even asking for an elevation.
martin

Re: Error Message

Sorry, I didn't read your response carefully.

I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
BrunoJ

Re: Error Message

As I said previously.
martin

Re: Error Message

Ok. Did you try the downgrade?
BrunoJ

Error Disappeared

I reverted to V5.21.8 and was able to delete a file. I then re-installed V6.1 and was still able to delete a file. Gremlins?
BrunoJ

Error Message

That is the complete error message. See the attached image.
BrunoJ

Requested Steps


  1. Select file from display of local folder
  2. Press delete key
  3. Question appears: "Are you sure you want to move file '@DELETE THIS.jpg' to recycle bin?"
  4. Press OK button
  5. Error appears: "Error deleting file 'C:\...\@DELETE THIS.jpg'" (I have replaced the actual path in this display with an ellipses for privacy purposes. The path is correct.)
martin

Re: Local File Deletion Error

Thanks for your report.
Please provide us step-by-step instructions for reproducing the problem.
Do you get any error? Or what exactly happens?
I have no issues with deleting local files in WinSCP 6.
BrunoJ

Local File Deletion Error

Since upgrade to V6.1, I cannot manually delete local files using WinSCP. Should there be a PowerShell command for doing this?