CryptoSys API Library Manual
wipeFile
Securely wipes and deletes a file using 7-pass DOD standards.
Syntax
[VBA]
Public Function wipeFile ( _
szFileName As String, _
Optional nOptions As Long = 0 _
) As Long
Parameters
- szFileName
- File to be deleted.
- nOptions
- Option flags. Select one of
API_WIPEFILE_DOD7 (0)
API_WIPEFILE_SIMPLE
Return Value
Long: Zero (0) on success, or a nonzero error code (use
apiErrorLookup to check).
Remarks
The default option uses the 7-pass DOD Standard according to [NISPOM] before deleting.
API_WIPEFILE_SIMPLE
overwrites the file with a single pass of zero bytes (quicker but less secure).