Framework EDI Reference. Methods and Properties
ediFileSystem. DeleteFile

Deletes an existing file.

Syntax:

Parameters:

Returns

Returns 1 if the operation is successful; otherwise the operation returns zero.

Remarks

The file is not deleted if it has one or more of the following properties:

 

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem

' Delete a file.
oFileSystem.DeleteFile App.Path & "\TestFile.Txt"

MsgBox "Done"

Samples