src/GoogleDriveAdapter.php
protected function unPublish($path)
    {
        if (($file = $this->getFileObject($path))) {
            $permissions = $file->getPermissions();
            try {
                foreach ($permissions as $permission) {
                    if ($permission->type === 'anyone' && $permission->role === 'reader') {
                        $this->service->permissions->delete($file->getId(), $permission->getId());
                    }
                }
                return true;
            } catch (Exception $e) {
                return false;
            }
        }

        return false;
    }
protected function unPublish($path)
    {
        if (($file = $this->getFileObject($path))) {
            $permissions = $file->getPermissions();
            try {
                foreach ($permissions as $permission) {
                    if ($permission->type === 'anyone' && $permission->role === 'reader') {
                        $this->service->permissions->delete($file->getId(), $permission->getId());
                    }
                }
                return true;
            } catch (Exception $e) {
                return false;
            }
        }

        return false;
    }
protected function unPublish ( $ path ) { if ( ( $ file = $ this -> getFileObject ( $ path ) ) ) { $ permissions = $ file -> getPermissions ( ) ; try { foreach ( $ permissions as $ permission ) { if ( $ permission -> type === 'anyone' && $ permission -> role === 'reader' ) { $ this -> service -> permissions -> delete ( $ file -> getId ( ) , $ permission -> getId ( ) ) ; } } return true ; } catch ( Exception $ e ) { return false ; } } return false ; }
Un-publish specified path item

@param string $path
itemId path

@return bool
Un - publish specified path item