Issue 489 · Week of May 20, 2026
Feed Jobs Search Platform About Donate
← Back to feed / //dotnet

How to Move Files and Folders to Recycle Bin in .NET

Read full article Discuss
In .NET applications on Windows, files and folders are often deleted with File.Delete or Directory.Delete, which removes them for good. By using the Windows Shell API, items can be moved to the Recycle Bin, making it possible for users to restore them later.