public function deleteItem($iid, $eventTime=null)
    {
        $eventTime = $this->getEventTime($eventTime);

        $json = json_encode([
            'event' => '$delete',
            'entityType' => 'item',
            'entityId' => $iid,
            'eventTime' => $eventTime,
        ]);

        return $this->sendRequest('POST', $this->eventUrl, $json);
    }
public function deleteItem($iid, $eventTime=null)
    {
        $eventTime = $this->getEventTime($eventTime);

        $json = json_encode([
            'event' => '$delete',
            'entityType' => 'item',
            'entityId' => $iid,
            'eventTime' => $eventTime,
        ]);

        return $this->sendRequest('POST', $this->eventUrl, $json);
    }
public function deleteItem ( $ iid , $ eventTime = null ) { $ eventTime = $ this -> getEventTime ( $ eventTime ) ; $ json = json_encode ( [ 'event' => '$delete' , 'entityType' => 'item' , 'entityId' => $ iid , 'eventTime' => $ eventTime , ] ) ; return $ this -> sendRequest ( 'POST' , $ this -> eventUrl , $ json ) ; }
Delete an item entity

@param int|string Item Id
@param string Time of the event in ISO 8601 format
(e.g. 2014-09-09T16:17:42.937-08:00).
Default is the current time.

@return string JSON response

@throws PredictionIOAPIError Request error
Delete an item entity