code: @Override
      public boolean deleteStatusOverride(String appName, String id,
                                          InstanceStatus newStatus,
                                          String lastDirtyTimestamp,
                                          boolean isReplication) {
          try {
              read.lock();
              STATUS_OVERRIDE_DELETE.increment(isReplication);
              Map<String, Lease<InstanceInfo>> gMap = registry.get(appName);
              Lease<InstanceInfo> lease = null;
              if (gMap != null) {
                  lease = gMap.get(id);
              }
              if (lease == null) {
                  return false;
              } else {
                  lease.renew();
                  InstanceInfo info = lease.getHolder();
  
                  // Lease is always created with its instance info object.
                  // This log statement is provided as a safeguard, in case this invariant is violated.
                  if (info == null) {
                      logger.error("Found Lease without a holder for instance id {}", id);
                  }
  
                  InstanceStatus currentOverride = overriddenInstanceStatusMap.remove(id);
                  if (currentOverride != null && info != null) {
                      info.setOverriddenStatus(InstanceStatus.UNKNOWN);
                      info.setStatusWithoutDirty(newStatus);
                      long replicaDirtyTimestamp = 0;
                      if (lastDirtyTimestamp != null) {
                          replicaDirtyTimestamp = Long.valueOf(lastDirtyTimestamp);
                      }
                      // If the replication's dirty timestamp is more than the existing one, just update
                      // it to the replica's.
                      if (replicaDirtyTimestamp > info.getLastDirtyTimestamp()) {
                          info.setLastDirtyTimestamp(replicaDirtyTimestamp);
                      }
                      info.setActionType(ActionType.MODIFIED);
                      recentlyChangedQueue.add(new RecentlyChangedItem(lease));
                      info.setLastUpdatedTimestamp();
                      invalidateCache(appName, info.getVIPAddress(), info.getSecureVipAddress());
                  }
                  return true;
              }
          } finally {
              read.unlock();
          }
      }
docs: Removes status override for a give instance.
  
  @param appName the application name of the instance.
  @param id the unique identifier of the instance.
  @param newStatus the new {@link InstanceStatus}.
  @param lastDirtyTimestamp last timestamp when this instance information was updated.
  @param isReplication true if this is a replication event from other nodes, false
  otherwise.
  @return true if the status was successfully updated, false otherwise.