This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267319

Summary: Delete files using recycle bin
Product: ide Reporter: onman
Component: UIAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description onman 2016-07-26 16:13:58 UTC
I have a project (P1) which is a composer package to be used by other projects. I have stored this in my local composer repository.

In another project (P2) I use the composer dependency P1. As I wanted to completely reset project P2 I deleted its composer 'vendor' directory. This happend to delete project P1 as well (it was linked instead of copied, because it was in a local repository). Fortunately I was able to recover P1 using some undocumented(?) trics found when googling.

I myself was already surprised that netbeans did not delete using the Windows recycle bin, but while googling I found that an old request (from 2007) to delete file through the recycle bin was closed earlier this month (on July 7).

Why is it not yet built into netbeans to use the Windows recycle bin?
I found an example how to do this in java (scroll all the way down to the end for the code example):

Many Windows developers will be gratefull if you implement this.