CryptoSys PKI Pro Manual

Wipe.File Method

Securely wipe and delete a file with options.

Syntax

[C#]
public static bool File(
   string fileName,
   Wipe.Options opts = Wipe.Options.Default 
)
[VB]
Public Shared Function File (
   fileName As String,
   Optional opts As Wipe.Options = Wipe.Options.Default 
) As Boolean

Parameters

fileName  String
Name of file to be wiped
opts  Wipe.Options  (Optional)
Options (optional, default = DOD 7-pass)

Return Value

Boolean
true if successful; false if fails

Example

bool isok = Wipe.File("ImportantSecret.txt");
Debug.Assert(isok, "Failed to wipe file");

See Also

VB6/C equivalent: WIPE_File

[Contents] [Index]

[PREV: Wipe.Data Method...]   [Contents]   [Index]   
   [NEXT: Wipe.String Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.