/**
  * Get the SharePoint List of this Folder
  *
  * Depending if this is a root Folder,
  * retrieve the SharePoint List accordingly
  *
  * @access  public
  * @param   array  $settings Instantiation settings
  * @throws  SPException
  * @return  SPList
  */
 public function getSPList(array $settings = [])
 {
     if ($this->isRootFolder()) {
         return SPList::getByTitle($this->site, $this->listTitle, $settings);
     }
     return SPList::getByGUID($this->site, $this->listGUID, $settings);
 }
 /**
  * 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;
 }