public function delete($path) {
        if (false === @ftp_delete($this->getConnection(), $path)) {
            throw $this->newFTPException(sprintf("delete %s failed", $path));
        }
        return $this;
    }
public function delete($path) {
        if (false === @ftp_delete($this->getConnection(), $path)) {
            throw $this->newFTPException(sprintf("delete %s failed", $path));
        }
        return $this;
    }
public function delete ( $ path ) { if ( false === @ ftp_delete ( $ this -> getConnection ( ) , $ path ) ) { throw $ this -> newFTPException ( sprintf ( "delete %s failed" , $ path ) ) ; } return $ this ; }
Deletes a file on the FTP server.

@param string $path The file to delete.
@return FTPClient Returns this FTP client.
@throws FTPException Throws a FTP exception if an I/O error occurs.
Deletes a file on the FTP server .