public function delete() {
        $url = "entities";

        if ($this->_id) {
            $url .= "/{$this->_id}";
        }

        if ($this->_type) {
            $url .= "?type={$this->_type}";
        }

        return $this->_orion->delete($url);
    }
public function delete() {
        $url = "entities";

        if ($this->_id) {
            $url .= "/{$this->_id}";
        }

        if ($this->_type) {
            $url .= "?type={$this->_type}";
        }

        return $this->_orion->delete($url);
    }
public function delete ( ) { $ url = "entities" ; if ( $ this -> _id ) { $ url .= "/{$this->_id}" ; } if ( $ this -> _type ) { $ url .= "?type={$this->_type}" ; } return $ this -> _orion -> delete ( $ url ) ; }
Delete current Entity
@return \Orion\Utils\HttpRequest
Delete current Entity