.scripts/contentdm.php
/**
   * Step 4 - Local/Remote Deletion
   *
   * If applicable, delete any local manuscripts that no longer exist remotely.
   */
Step 4 - Local/Remote Deletion
If applicable, delete any local manuscripts that no longer exist remotely.
Step 4 - Local / Remote Deletion If applicable delete any local manuscripts that no longer exist remotely .
public function localDeletion() {
    $this->logger("There are " . count($this->deletions) . " manuscripts deleted remotely.");
    foreach ($this->deletions as $key=>$pointer) {
      $pointer = trim($pointer);
      $this->logger("Deleting pointer " . $pointer . " from the " . $this->collection . " collection.");
      $prepare = $this->database->prepare("
        DELETE FROM manuscripts
        WHERE       pointer = :pointer
          AND       collection = :collection
        LIMIT       1
      ");
      $prepare->execute(array(
        ":pointer"    => $pointer,
        ":collection" => $this->collection
      ));
    }
  }
public function localDeletion ( ) { $ this -> logger ( " There are  " . count ( $ this -> deletions ) . "  manuscripts deleted remotely. " ) ; foreach ( $ this -> deletions as $ key => $ pointer ) { $ pointer = trim ( $ pointer ) ; $ this -> logger ( " Deleting pointer  " . $ pointer . "  from the  " . $ this -> collection . "  collection. " ) ; $ prepare = $ this -> database -> prepare ( " 
        DELETE FROM manuscripts
        WHERE       pointer = :pointer
          AND       collection = :collection
        LIMIT       1
       " ) ; $ prepare -> execute ( array ( " :pointer " => $ pointer , " :collection " => $ this -> collection ) ) ; } }
Step 4 - Local/Remote Deletion
 If applicable, delete any local manuscripts that no longer exist remotely.
Step 4 - Local / Remote Deletion If applicable delete any local manuscripts that no longer exist remotely .