code: boolean tryDeleteReplica(Storable replica) throws PersistException {
          // Prevent trigger from being invoked by deleting replica.
          TriggerManager tm = mTriggerManager;
          tm.locallyDisableDelete();
          try {
              return replica.tryDelete();
          } finally {
              tm.locallyEnableDelete();
          }
      }
docs: Deletes the replica entry with replication disabled.