Delete a file on the remote server.
This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
The DeleteFile method deletes an existing file from the remote server. The user must have the appropriate permission to delete the specified file.