Securely wipe and delete a file with options.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.25611 (23.0.0.0)
Syntaxpublic static bool File(
string fileName,
WipeOptions opts = WipeOptions.Default
)
Public Shared Function File (
fileName As String,
Optional opts As WipeOptions = WipeOptions.Default
) As Boolean
Parameters
- fileName String
- Name of file to be wiped
- opts WipeOptions (Optional)
- Options (optional, default = DOD 7-pass)
Return Value
Booleantrue if successful;
false if fails
Examplebool isok = Wipe.File("ImportantSecret.txt");
Debug.Assert(isok, "Failed to wipe file");
See Also