public function delete(string $remoteFile)
    {
        if (!@ftp_delete($this->ftp, $remoteFile)) {
            throw new Exception(sprintf("Cannot delete file %s", $remoteFile));
        }

        return $this;
    }
public function delete(string $remoteFile)
    {
        if (!@ftp_delete($this->ftp, $remoteFile)) {
            throw new Exception(sprintf("Cannot delete file %s", $remoteFile));
        }

        return $this;
    }
public function delete ( string $ remoteFile ) { if ( ! @ ftp_delete ( $ this -> ftp , $ remoteFile ) ) { throw new Exception ( sprintf ( "Cannot delete file %s" , $ remoteFile ) ) ; } return $ this ; }
Delete a file from ftp-server.

@param string $remoteFile Remote file path.

@return $this
@throws Exception
Delete a file from ftp - server .