Skip to content

This is a simple .Net 8 (C#) console application that securely deletes files and folders from your computer.

License

Notifications You must be signed in to change notification settings

coderpros/CoderPro.Apps.SecureRecycle.Console

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn Twitter GitHub

CoderPro.Apps.SecureRecycle.Console

This is a simple .Net 8 (C#) console application that securely deletes files and folders from your computer. This application uses the SecureDelete library to overwrite the files and folders multiple times before deleting them.

The application will randomly encrypt the files with AES 256 before finally deleting them completely with one of the following protocols. (Optional)

The following protocols are available for deleting files:

  • Gutmann
  • DoD 7-pass
  • Overwrite Zeros
  • Overwrite Ones
  • Overwrite Random (Shred)

How to use

Simply execute the following command:

SecureDelete.exe [/debug] [encrypt] [/protocol dod7|gutmann|none|ones|random|zeros]]
  • /debug: This is an optional parameter that will display additional information about the files being deleted.
  • /encrypt: This is an optional parameter that will encrypt the files before deleting them.
  • /protocol: This is an optional parameter that specifies the protocol to use when deleting the files. The default is "random".
    • dod7: DoD 7-pass protocol (5220.22-M): Overwrites the file 7 times with different patterns.
    • gutmann: Gutmann protocol: Overwrites the file 35 times with different patterns.
    • none: No protocol: Deletes the file without overwriting it.
    • ones: Overwrites the file with ones.
    • random: Overwrites the file with random data.
    • zeros: Overwrites the file with zeros.

Change Log

  • 2025/01/10
    • Added the ability to specify not to encrypt the file before deleting it.
    • Added the none option to the protocol parameter to delete the file without overwriting it.
    • Added a progress bar to the console output.
    • Fixed the memory leak when deleting a lot of files (especially large files).
  • 2025/01/03
    • Initial commit

About

This is a simple .Net 8 (C#) console application that securely deletes files and folders from your computer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages