views:

183

answers:

3

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?

+3  A: 

You may find this article on CodeProject helpful.

Darin Dimitrov
A: 

Wouldn't overwriting the file with nothing do exactly as you want?

Jibu3
Thats the most basic option and I mentioned it already in my question.
Hasan Khan
+1  A: 

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

you can specify the number of passes.

Dave Quick