DeleteFile Method  
 

Remove a file on the server.

Syntax

object.DeleteFile( FileName )

Parameters

FileName
An string value which specifies the name of the resource or file to be deleted.

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 HTTP server using the DELETE command. This command is typically only accepted by servers that support version 1.1 of the protocol or later. Note that this method requires that the server be configured to permit file deletion and that the user has the appropriate permission to remove the file.

See Also

CreateFile Method, GetFile Method, OpenFile Method, PutFile Method