Vscode: Windows 10: Deleting always fails with error message

Created on 1 Apr 2016  路  7Comments  路  Source: microsoft/vscode

  • VSCode Version: 0.10.11
  • OS Version: Windows 10 x64
    NOTE: Recycle bin is disabled.

Steps to Reproduce:

  1. Try to delete any file in VS Explorer
  2. Get "Failed to move {filename} to the trash"
  3. Hitting "Delete Permanently" does nothing.

Also it was reproducible with previous versions.

Most helpful comment

Is it possible to turn off the trash feature and always force delete file?
Same story on Windows 10.0.143.93
Very annoying.

All 7 comments

@apalchys there can be many reasons why moving to trash does not work (e.g. you are on a SUBST drive, or mounted network). The bug that deleting permanently fails is fixed for our current release. You can try it from our insiders release: http://code.visualstudio.com/Download#insiders

@bpasero Confirm. it is fixed in 0.10.13-insider. Thanks.

I always use VS Code in a Linux VM (in VirtualBox) against a shared folder that's mounted under /media/. VS Code's Delete command always prompts for whether I want to Move To Trash, but then it always fails to move it to the trash presumably because the file was on a mounted folder/drive. So then I have to click the Delete Permanently option. It sure would be nice if VS Code was smart enough to detect that the file was on a mounted folder/drive and just prompt for "Delete Permanently" instead of "Move To Trash". It would save me a click every time I delete a file, which has happened a lot lately.

Is it possible to turn off the trash feature and always force delete file?
Same story on Windows 10.0.143.93
Very annoying.

The problem still exists.
Version 1.15.1

I am facing the same issue. I cannot rename or delete folder. Vs code blocking this operation by itself. Only closing vs code helps. Also i have tried running app as administrator - no luck

IMHO VS Code should warn by default when it cannot move a file to recycle bin. But there should be an option to override this warning - perhaps even per workspace; so it gets less annoying for those Users that know what they do.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  路  3Comments

trstringer picture trstringer  路  3Comments

lukehoban picture lukehoban  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

chrisdias picture chrisdias  路  3Comments