GitShow/sindresorhus/recycle-bin
sindresorhus

recycle-bin

Move files and folders to the Windows recycle bin

by sindresorhus
Star on GitHubFork

C

74 stars11 forks4 contributorsActive · 1mo agoSince 2015v2.1.1MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus12 contributions
Qix-
Qix-2 contributions
kidonng
kidonng1 contribution
medusalix
medusalix1 contribution

Languages

View on GitHub →
C73.3%
Batchfile26.7%

Commit activity

Last 12 weeks · 2 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · 1 discussion · Last activity 1mo ago
See all on GitHub →
sindresorhus
By default, don't permanently delete when recycle bin doesn't existOpenIssue

I think that's a better default. We can add a flag to get back the old behavior. It seems like we can use the flag for this: Send a warning if a file or folder is being destroyed during a delete operation rather than recycled. This flag partially overrides FOF_NOCONFIRMATION. - https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifileoperation-setoperationflags It's not immediately clear what they mean by warning and how we could check for that though.

sindresorhus · 5y ago

Recent fixes

View closed PRs →
Float-Moon
Windows recycle bin not refresh after delete operationClosedIssue

Steps To Reproduce Download release v2.1.0 Exec Folder is deleted, however the desktop icon of recycle bin is not refreshed (empty recycle bin) Right click it, in the menu, is not clickable Only after double-click to open it in file explorer will the whole thing refresh. Infos Windows 11 profession, 25H2, 26200.8655 I have tried to make a small mimc version using both and , none of them make recycle bin refresh. Also restart my computers, but did not work. I doubt some additional codes are needed to mannually refresh the recycle bin in newer versions of Win11, but can not figure it out.

Float-Moon · 1mo ago
shiyou0130011
v2.1.0 wildcard character ("*") cannot workClosedIssue

For example, my folder is like following: In v2.0.0, when I run , all the folders will be moved to recycle bin. However, it shows error in . Following is an example in (folders weren’t removed)

shiyou0130011 · 2mo ago
examosa
Fails silently when attempting to remove in-use directoryClosedIssue

If I run on a directory that is open elsewhere e.g. in an IDE, it will fail to do so but without any error output. Repro (PowerShell)

examosa · 6mo ago
Structured data for AI agents

Repository: sindresorhus/recycle-bin. Description: Move files and folders to the Windows recycle bin Stars: 74, Forks: 11. Primary language: C. Languages: C (73.3%), Batchfile (26.7%). License: MIT. Latest release: v2.1.1 (1mo ago). Open PRs: 0, open issues: 1. Last activity: 1mo ago. Community health: 71%. Top contributors: sindresorhus, Qix-, kidonng, medusalix.

·@ofershap

Replace github.com with gitshow.dev