securedelete-net

Class to securely delete files on a HDD (only windows based systems). Current Features: - Ability to detect the underlying hardware (to prevent overwrites on SSD's) - Overwrite files with simple random data - Resets the file times - Obfuscate file and directory names


Keywords
secure, delete, ssd, hdd, overwrite, erase
License
MIT
Install
Install-Package securedelete-net -Version 0.2.1

Documentation

securedelete-net NuGet Version License

Class to securely delete files on a HDD (only windows based systems).

Current Features:

  • Ability to detect the underlying hardware (to prevent overwrites on SSD's)
  • Overwrite files with simple random data
  • Resets the file times
  • Obfuscate file and directory names

Status

Pull requests and/or optimization proposals are always welcome!

Further reading

Data Evaporation from a SSD

DEF CON 21 - Sam Bowne - Data Evaporation from SSDs

Installation

There is a NuGet package available.

Example

using SecureDelete;


Delete.DeleteDirectory(new DirectoryInfo(@"F:\MyFolderOnHdd"), true);

Delete.DeleteDirectoryWithoutDriveDetection(new DirectoryInfo(@"F:\MyFolderOnHdd"), true);

Delete.DeleteFile(@"F:\aFile.jpg");

Delete.DeleteFileWithoutDriveDetection(@"F:\aFile.jpg");

License

MIT