/** * Delete a SharePoint Item * * @access public * @throws SPException * @return bool */ public function delete() { $this->list->request("_api/web/Lists(guid'" . $this->list->getGUID() . "')/items(" . $this->id . ")", ['headers' => ['Authorization' => 'Bearer ' . $this->list->getSPAccessToken(), 'X-RequestDigest' => (string) $this->list->getSPFormDigest(), 'IF-MATCH' => '*', 'X-HTTP-Method' => 'DELETE']], 'POST'); return true; }