Specifies whether a file should be deleted permanently or placed in the Recycle Bin.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
To protect users against accidental deletion of important files, the Recycle Bin collects deleted files and provides a method for restoring those files. You must explicitly delete the files from the Recycle Bin to make the deletion permanent. Until the files are deleted from the Recycle Bin, the disk space occupied by those files is unavailable for other uses.
Sometimes it is beneficial to bypass the Recycle Bin, especially if you are deleting a large number of files (or a smaller number of very large files) that you are sure are no longer needed, and you want to reclaim the disk space.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.