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

        if (!is_string($itemId)) {
            throw new InvalidTypeException('Item ID', 'string', gettype($itemId));
        }

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

        if (!is_string($itemId)) {
            throw new InvalidTypeException('Item ID', 'string', gettype($itemId));
        }

        return $this->delete(sprintf('collections/%s/items/%s', $collectionId, $itemId), [], $accessToken);
    }
public function deleteCollectionItem ( $ collectionId , $ itemId , $ accessToken ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_string ( $ itemId ) ) { throw new InvalidTypeException ( 'Item ID' , 'string' , gettype ( $ itemId ) ) ; } return $ this -> delete ( sprintf ( 'collections/%s/items/%s' , $ collectionId , $ itemId ) , [ ] , $ accessToken ) ; }
Delete an item from a collection

@param string $collectionId
@param string $itemId
@param string $accessToken
@throws EndpointNotSupportedByApiVersionException
@throws InvalidTypeException
@return null
Delete an item from a collection