def _DeleteChildFromIndex(self, urn, token):
    try:
      basename = urn.Basename()
      dirname = rdfvalue.RDFURN(urn.Dirname())

      try:
        self.intermediate_cache.ExpireObject(urn.Path())
      except __HOLE__:
        pass

      data_store.DB.DeleteAttributes(
          dirname, ["index:dir/%s" % utils.SmartStr(basename)], token=token,
          sync=False)
      data_store.DB.MultiSet(dirname, {
          AFF4Object.SchemaCls.LAST: [
              rdfvalue.RDFDatetime().Now().SerializeToDataStore()],
      }, token=token, replace=True, sync=False)

    except access_control.UnauthorizedAccess:
      pass
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/Factory._DeleteChildFromIndex