DeleteFile Method

Delete a file on the remote server.

Syntax

object.DeleteFile( RemoteFile )

Remarks

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

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

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.

See Also

RenameFile Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.