/**
  * Delete ECS resource
  * 
  * as it is called from self::_handleDelete() it has to be public...
  * 
  * @param type $a_server_id
  * @throws ilECSConnectorException
  */
 public function doDelete(ilECSSetting $a_server, ilECSExport $a_export_settings)
 {
     global $ilLog;
     // already exported?
     if ($a_export_settings->isExported()) {
         include_once './Services/WebServices/ECS/classes/class.ilECSSetting.php';
         include_once './Services/WebServices/ECS/classes/class.ilECSConnector.php';
         $econtent_id = $a_export_settings->getEContentId();
         if (!$econtent_id) {
             $ilLog->write(__METHOD__ . ': Missing eid. Aborting.');
             throw new ilECSConnectorException('Missing ECS content ID. Aborting.');
         }
         $connector = new ilECSConnector($a_server);
         $ilLog->write(__METHOD__ . ': Start deleting ECS content...');
         $connector->deleteResource($this->getECSObjectType(), $econtent_id);
         // status changed
         $a_export_settings->setExported(false);
         $a_export_settings->save();
     }
 }