public function deleteCollection($collectionId, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        return $this->delete(sprintf('collections/%s', $collectionId), [], $accessToken);
    }
public function deleteCollection($collectionId, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        return $this->delete(sprintf('collections/%s', $collectionId), [], $accessToken);
    }
public function deleteCollection ( $ collectionId , $ accessToken ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } return $ this -> delete ( sprintf ( 'collections/%s' , $ collectionId ) , [ ] , $ accessToken ) ; }
Delete a collection

@param string $collectionId
@param string $accessToken
@throws EndpointNotSupportedByApiVersionException
@throws InvalidTypeException
@return null
Delete a collection