public function delete($path)
    {
        $result = @ftp_delete($this->connection, $path);
        
        if ($result === false) {
            throw new Exception('Unable to get parent folder');
        }

        return $this;
    }
public function delete($path)
    {
        $result = @ftp_delete($this->connection, $path);
        
        if ($result === false) {
            throw new Exception('Unable to get parent folder');
        }

        return $this;
    }
public function delete ( $ path ) { $ result = @ ftp_delete ( $ this -> connection , $ path ) ; if ( $ result === false ) { throw new Exception ( 'Unable to get parent folder' ) ; } return $ this ; }
Deletes a file on the FTP server

@param string $path

@return FTPClient
Deletes a file on the FTP server