public function unload($collection)
    {
        $collectionId = $this->getCollectionId($collection);

        if ($this->isValidCollectionId($collectionId)) {
            throw new ClientException('Cannot alter a collection without a collection id');
        }

        $result = $this->getConnection()->put(
            UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collectionId, self::OPTION_UNLOAD]),
            ''
        );

        return $result;
    }
public function unload($collection)
    {
        $collectionId = $this->getCollectionId($collection);

        if ($this->isValidCollectionId($collectionId)) {
            throw new ClientException('Cannot alter a collection without a collection id');
        }

        $result = $this->getConnection()->put(
            UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collectionId, self::OPTION_UNLOAD]),
            ''
        );

        return $result;
    }
public function unload ( $ collection ) { $ collectionId = $ this -> getCollectionId ( $ collection ) ; if ( $ this -> isValidCollectionId ( $ collectionId ) ) { throw new ClientException ( 'Cannot alter a collection without a collection id' ) ; } $ result = $ this -> getConnection ( ) -> put ( UrlHelper :: buildUrl ( Urls :: URL_COLLECTION , [ $ collectionId , self :: OPTION_UNLOAD ] ) , '' ) ; return $ result ; }
Unload a collection from the server's memory

This will unload the given collection from the server's memory.

@throws Exception

@param mixed $collection - collection id as string or number or collection object

@return HttpResponse - HTTP response object
Unload a collection from the server s memory