DeleteFile Method  
 

Delete a file on the server.

Syntax

object.DeleteFile( RemoteFile )

Parameters

RemoteFile
A string which specifies the name of the file on the server that will be deleted. The file pathing and name conventions must be that of the server.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

Remarks

The DeleteFile method deletes an existing file from the server. The user must have the appropriate permission to delete the specified file.

See Also

RenameFile Method