| INT DeleteFile( | 
             
            
              |   | 
              LPCTSTR lpszFileName | 
                | 
             
            
              | ); | 
             
           
         
        
          The DeleteFile method deletes the specified file from the
          server. 
         
        Parameters
        
          
            - lpszFileName
 
            - Points to a string that specifies the name of
            the remote file to delete. The file pathing and name conventions
            must be that of the server.
 
           
         
        Return Value
        
          If the method succeeds, the return value is the server result
          code. If the method fails, the return value is FTP_ERROR. To get
          extended error information, call GetLastError. 
         
        Remarks
        
          The current user must have the appropriate permission to delete
          the file, or an error will be returned by the server. 
         
        Requirements
        
          Minimum Desktop Platform: Windows 7 Service Pack 1 
          Minimum Server Platform: Windows Server 2008 R2 Service Pack 1 
          Header File: cstools11.h 
          Import Library: csftpv11.lib 
          Unicode: Implemented as Unicode and ANSI versions 
         
        See Also
        
          GetFile, 
          PutFile, 
          RenameFile 
         
       |