/**
  * delete attachments of record
  * 
  * @param Tinebase_Record_Abstract $record
  */
 public function deleteRecordAttachments($record)
 {
     $attachments = $record->attachments instanceof Tinebase_Record_RecordSet ? $record->attachments : $this->getRecordAttachments($record);
     foreach ($attachments as $node) {
         $this->_fsController->deleteFileNode($node);
     }
 }
 /**
  * Deletes a set of records.
  *
  * If one of the records could not be deleted, no record is deleted
  *
  * @param   array array of record identifiers
  * @return  Tinebase_Record_RecordSet
  */
 public function delete($_ids)
 {
     $nodes = $this->getMultiple($_ids);
     foreach ($nodes as $node) {
         if ($this->_checkACLContainer($this->_backend->getNodeContainer($node->getId()), 'delete')) {
             $this->_backend->deleteFileNode($node);
         } else {
             $nodes->removeRecord($node);
         }
     }
     return $nodes;
 }