Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to permanently delete file so that it becomes unrecoverable?

If I want my application (written in .NET) to delete a file such that it can not be recovered by disk recovery tool. What are my options?

One that I can think of is that I open it up in write mode, overwrite all of it with some random data and it would make the file unrecoverable. Is there any other way?

like image 252
Muhammad Hasan Khan Avatar asked Dec 02 '25 05:12

Muhammad Hasan Khan


1 Answers

Shell out to SDELETE: http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx

you can specify the number of passes.

like image 162
Dave Quick Avatar answered Dec 04 '25 19:12

Dave Quick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!